Commit graph

860 commits

Author SHA1 Message Date
Sergey Kurt
8874738f73 Fixed query formatting 2017-03-18 15:40:17 +03:00
Sergey Kurt
21917fcfc6 Refactored if-else in WhereClauseRepeated 2017-03-18 15:32:39 +03:00
Sergey Kurt
f3f8074833 Removed blank lines and spaces 2017-03-18 15:18:04 +03:00
Sergey Kurt
4718e72b6d Idiomatic quotes 2017-03-16 11:43:51 +03:00
Sergey Kurt
35eefdda41 MS SQL test schema 2017-03-16 11:32:24 +03:00
Sergey Kurt
79f6c344c1 Updates for MS SQL support 2017-03-16 11:30:57 +03:00
Sergey Kurt
5bc7addb8a Randomize for uniqueidentifier data type 2017-03-16 11:30:07 +03:00
Sergey Kurt
2e9535d56e Added uniqueidentifier and xml types (as string) 2017-03-16 11:29:31 +03:00
Sergey Kurt
b1b0249898 New line at end of file 2017-03-16 11:01:49 +03:00
Sergey Kurt
8de60ee26a Update and Insert for columns with autogenerated values 2017-03-16 10:54:55 +03:00
Sergey Kurt
e943c37a99 Update and Insert only for columns without autogenerated 2017-03-16 10:26:05 +03:00
Sergey Kurt
0a50c90a58 Fixed test for MS SQL for columns with IDENTITY 2017-03-16 09:55:50 +03:00
Sergey Kurt
4c2062caee Fixed code generation for Update and Reload 2017-03-15 19:35:44 +03:00
Sergey Kurt
f45f98ef03 Fixed placeholders 2017-03-15 19:13:20 +03:00
Sergey Kurt
ad15668462 Fixed code generation 2017-03-15 19:04:13 +03:00
Sergey Kurt
bfab02bde1 WhereClauseRepeated func for repeated Where clause 2017-03-15 18:02:56 +03:00
Sergey Kurt
54f960659b Ignore columns with defaults in randomize 2017-03-15 15:37:04 +03:00
Sergey Kurt
6fad1bd148 Added column flag for autogenerated values like IDENTITY | TIMESTAMP | ROWVERSION 2017-03-15 15:31:09 +03:00
Sergey Kurt
705befef07 Fixed types mapping 2017-03-15 14:12:21 +03:00
Sergey Kurt
85fc6e546a Fixed float and real mapping 2017-03-14 18:49:40 +03:00
Sergey Kurt
6aadf439c9 Fixed column types mapping 2017-03-14 18:45:41 +03:00
Sergey Kurt
51e9961f0a Fixed OUTPUT values on Insert 2017-03-14 18:06:33 +03:00
Sergey Kurt
5d72569635 Fixed Insert and Select for timestamp, rowversion 2017-03-14 18:06:12 +03:00
Sergey Kurt
813fd43e03 Ignore columns with defaults on Insert 2017-03-14 17:41:45 +03:00
Sergey Kurt
a48e5f7f82 MS SQL compatible query for RETURNING clause 2017-03-14 16:52:54 +03:00
Sergey Kurt
e2e619dfb2 Check for error on tables schema file opening 2017-03-14 16:51:56 +03:00
Sergey Kurt
0bdbee86f1 Queries refactoring 2017-03-14 14:58:32 +03:00
Sergey Kurt
4f02886c2b Added space in SELECT TOP clause 2017-03-14 14:31:52 +03:00
Sergey Kurt
b783311248 Hack for MS SQL limit/offset query without ORDER BY clause 2017-03-14 14:24:03 +03:00
Sergey Kurt
e3254c1851 Allow MS SQL driver to use indexed placeholders 2017-03-14 14:01:53 +03:00
Sergey Kurt
aa01f21b5c Pass UseTopClause flag into the Dialect object 2017-03-14 13:59:05 +03:00
Sergey Kurt
ed6dad7eed MS SQL compatible query for checks if the row exists 2017-03-14 13:53:35 +03:00
Sergey Kurt
83d90f3f28 Fixed quote symbols order 2017-03-14 13:48:38 +03:00
Sergey Kurt
454a3a816a Fixed quote symbols 2017-03-14 13:46:35 +03:00
Sergey Kurt
b3c4580efa Fixed comment for SchemaTable 2017-03-14 12:45:50 +03:00
Sergey Kurt
cbdbe4891a MSSQL rows limit/offset via TOP or OFFSET ... FETCH NEXT ... ROWS 2017-03-14 11:13:56 +03:00
Sergey Kurt
e2f32e746e Main MSSQL test template 2017-03-13 19:11:34 +03:00
Sergey Kurt
b4c9af72e7 Correct quote symbols 2017-03-13 16:28:23 +03:00
Sergey Kurt
2d3983b992 Bit and tinyint data types support 2017-03-13 16:27:16 +03:00
Sergey Kurt
54af37ef9a SchemaTable with MSSQL support 2017-03-13 16:25:12 +03:00
Sergey Kurt
132339026a Regular expression for FK destroyer 2017-03-13 16:24:08 +03:00
Sergey Kurt
e00ea60679 Initial MSSQL support 2017-03-13 12:55:26 +03:00
Patrick O'brien
e8723a2797 Fix modulus fix 2017-03-04 20:15:05 +10:00
Patrick O'brien
60a40eaf48 Fix randomize vals wrapping around to ngative vals
* Use modulus to ensure values are within valid ranges
2017-03-04 12:27:09 +10:00
Aaron L
9067237f32 Bump Version 2017-03-01 18:31:16 -08:00
Aaron L
8f96ba35d6 Allow insertion of only-defaulted tables
- Tables that are only comprised of default values and have nothing
  passed into them on insertion will no longer generate syntax errors.
2017-03-01 18:18:47 -08:00
Aaron L
a5cb765403 Ensure created_at isn't updated when unnecessary
- When we build the update whitelist (when the user doesn't provide one)
  we simply say that the whitelist is all columns except pkeys. The
  reason we do this is because sqlboiler doesn't support dirty tracking
  and if you want to update just a few fields, it's easier to just
  explicitly pass a whitelist when you update. However, in the case of
  created_at - it's a field that's usually managed by us and so we
  should not be updating it unless a user explicitly requests it via the
  whitelist. So if the whitelist is empty we prune that column now if it
  exists from the auto-created whitelist.
- The user also reported that upsert has the same fate, but the logic is
  somewhat different there. It expects that there's a value for
  created_at or it assumes that one needs to be created. There's no
  more magic we can do around this one unfortunately. Upsert is a
  mythical beast that doesn't play as nicely with our model, so users
  will just have to be more careful.
- Fix #106
2017-02-24 22:52:09 -08:00
Aaron L
8aa4e2148c Use _ to avoid reserved words in func args
- Fix #107
2017-02-24 22:27:05 -08:00
Patrick O'brien
3747754236 export importer members and add basepath for Stat 2017-02-05 21:41:30 +10:00
Patrick O'brien
e2c53aa312 Add imports library functionality 2017-02-05 20:17:11 +10:00