Updates for MS SQL support
This commit is contained in:
parent
5bc7addb8a
commit
79f6c344c1
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
@ -106,9 +106,12 @@ Table of Contents
|
||||||
|
|
||||||
- PostgreSQL
|
- PostgreSQL
|
||||||
- MySQL
|
- MySQL
|
||||||
|
- Microsoft SQL Server
|
||||||
|
|
||||||
*Note: Seeking contributors for other database engines.*
|
*Note: Seeking contributors for other database engines.*
|
||||||
|
|
||||||
|
*Microsoft SQL Server: Limit with offset support only for SQL Server 2012 and above.*
|
||||||
|
|
||||||
### A Small Taste
|
### A Small Taste
|
||||||
|
|
||||||
For a comprehensive list of available operations and examples please see [Features & Examples](#features--examples).
|
For a comprehensive list of available operations and examples please see [Features & Examples](#features--examples).
|
||||||
|
@ -273,6 +276,13 @@ schema="myschema"
|
||||||
user="dbusername"
|
user="dbusername"
|
||||||
pass="dbpassword"
|
pass="dbpassword"
|
||||||
sslmode="false"
|
sslmode="false"
|
||||||
|
[mssql]
|
||||||
|
dbname="dbname"
|
||||||
|
host="localhost"
|
||||||
|
port=1433
|
||||||
|
user="dbusername"
|
||||||
|
pass="dbpassword"
|
||||||
|
sslmode="disable"
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Initial Generation
|
#### Initial Generation
|
||||||
|
@ -319,6 +329,9 @@ sqlboiler -b goose_migrations postgres
|
||||||
go test ./models
|
go test ./models
|
||||||
```
|
```
|
||||||
|
|
||||||
|
*Note: No `mysqldump` or `pg_dump` equivalent for Microsoft SQL Server, so generated tests must be supplemented by `tables_schema.sql` with `CREATE TABLE ...` queries*
|
||||||
|
|
||||||
|
|
||||||
You can use `go generate` for SQLBoiler if you want to to make it easy to
|
You can use `go generate` for SQLBoiler if you want to to make it easy to
|
||||||
run the command.
|
run the command.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue