Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support SQL Server #120

Merged
merged 5 commits into from
Jun 8, 2021
Merged

Support SQL Server #120

merged 5 commits into from
Jun 8, 2021

Conversation

ytakaya
Copy link

@ytakaya ytakaya commented Jun 7, 2021

I want to use sqldef in SQL Server (MSSQL).
So I added support of MSSQL.

Add the syntax for mssql.

  • IDENTITY(N, M)
  • CLUSTERED
  • NONCLUSTERED

Support for the foloowing DDLs.

  • TABLE: CREATE TABLE, DROP TABLE
  • VIEW: CREATE VIEW, DROP VIEW

It does not yet support adding or altering columns or mssql specific data types like nvarchar.

@@ -220,6 +240,9 @@ Some of them can also be used for input schema file.
- SQLite3
- Table: CREATE TABLE, DROP TABLE
- View: CREATE VIEW, DROP VIEW
- SQLServer
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- SQLServer
- SQL Server

is correct. ref. https://www.microsoft.com/ja-jp/sql-server/sql-server-downloads

@@ -438,13 +461,14 @@ To rename them, you would need to rename manually and use `--export` again.

## Development

You can use the following command to prepare MySQL and PostgreSQL to be used for running tests.
You can use the following command to prepare MySQL, PostgreSQL and SQLServer to be used for running tests.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
You can use the following command to prepare MySQL, PostgreSQL and SQLServer to be used for running tests.
You can use the following command to prepare MySQL, PostgreSQL and SQL Server to be used for running tests.

ditto

Copy link
Collaborator

@k0kubun k0kubun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that I cannot push the suggestion to this branch, so I'll merge this and fix them. Thanks both!

@k0kubun k0kubun merged commit 8a09ff5 into sqldef:master Jun 8, 2021
@ytakaya
Copy link
Author

ytakaya commented Jun 8, 2021

Thanks for reviewing!

@k0kubun
Copy link
Collaborator

k0kubun commented Jun 8, 2021

👍 Published as v0.10.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants