bannzai / sqlboiler

Generate a Go ORM tailored to your database schema.
BSD 3-Clause "New" or "Revised" License
6 stars 0 forks source link

Add complex unique info #2

Open bannzai opened 6 years ago

bannzai commented 6 years ago
MSSQL ``` sudo docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=Passw0rdDao' \ -p 1433:1433 --name sql1 \ -d microsoft/mssql-server-linux:2017-latest ``` ``` 1> create table Book (name nchar(10), author nchar(10)) 2> Go 1> create unique nonclustered index ix_book_name_and_author on book (name, author); 2> Go 1> insert into Book values ("star-story", "bannzai") 2> Go ```
bannzai commented 6 years ago

If you're having a generation problem please answer these questions before submitting your issue. Thanks!

### What version of SQLBoiler are you using (`sqlboiler --version`)?

### If this happened at generation time what was the full SQLBoiler command you used to generate your models? (if not applicable leave blank)

### If this happened at runtime what code produced the issue? (if not applicable leave blank)

### What is the output of the command above with the `-d` flag added to it? (Provided you are comfortable sharing this, it contains a blueprint of your schema)

### Please provide a relevant database schema so we can replicate your issue (Provided you are comfortable sharing this)

### Further information. What did you do, what did you expect?