Commit graph

948 commits

Author SHA1 Message Date
Michał Mrozek
91a798d9af Update global.go 2017-04-16 20:00:43 +02:00
Aaron L
0818af0e26 Don't use XSlice where unneeded.
- In the bowels of the eager loading we weave in and out of reflection,
  but we should not care about using XSlice unless it's going back to
  the user. This change makes it so the XSlice is only used where it
  matters, everywhere else is *[]*X to avoid type assertion errors from
  being able to have either or come into the Load() functions.
- Fix #124
2017-04-04 19:44:36 -07:00
Aaron L
10cfe74989 Fix a bug that could occur on no-field inserts 2017-04-04 19:42:49 -07:00
Aaron L
d13410617f Correct whitespace errors 2017-04-04 19:40:12 -07:00
Aaron L
91950e711e Add slack badge to readme 2017-04-04 17:46:51 -07:00
Aaron L
3d1f3fc609 Use different schema names for different drivers 2017-04-02 09:40:08 -07:00
Sergey Kurt
4560da9bd1 Fixed comment for TableNames 2017-04-02 12:48:29 +03:00
Sergey Kurt
fd2c7ad764 Fixed Upsert statement for postgres, mysql 2017-04-02 12:27:33 +03:00
Sergey Kurt
b2acda8ade Generic Select statement in Reload 2017-04-01 21:11:01 +03:00
Sergey Kurt
f913d5e791 Generic Delete statement 2017-04-01 21:08:29 +03:00
Sergey Kurt
178d925c24 Generic Update statement 2017-04-01 21:00:13 +03:00
Sergey Kurt
783e7a82b3 Choosing StartIndex at template time 2017-04-01 20:30:40 +03:00
Sergey Kurt
b6d0a5142a Removed special case for mssql 2017-04-01 20:16:05 +03:00
Sergey Kurt
e1dfd0bb1e Newline at end of file 2017-04-01 18:59:22 +03:00
Patrick O
aca431b3ce Merge pull request #123 from concreted/patch-1
(fix) typo in README
2017-04-01 12:49:13 +10:00
Aric Huang
f94fa547e7 (fix) typo in README 2017-03-31 15:02:32 -07:00
Sergey Kurt
a4ba4b6e9d Uniqueidentifier now treated as uuid 2017-03-31 11:39:12 +03:00
Sergey Kurt
dfbcef7fe3 Fixed typo and combined variables declaration 2017-03-31 11:27:34 +03:00
Sergey Kurt
874d2ed2e6 Fixed type for non-nullable uniqueidentifier, xml 2017-03-31 11:24:11 +03:00
Sergey Kurt
dbf897977a Newline at end of file 2017-03-31 11:07:30 +03:00
Sergey Kurt
b10df110a0 Newline at end of file 2017-03-31 11:05:52 +03:00
Sergey Kurt
b4fc4447f8 Fixed trim direction 2017-03-31 11:03:16 +03:00
Sergey Kurt
83b935168f Branching with if-else 2017-03-31 10:59:03 +03:00
Sergey Kurt
8ef33a1127 PkgName in error 2017-03-31 10:52:54 +03:00
Sergey Kurt
f4b9b2a406 Better startIndex calculation 2017-03-21 13:15:37 +03:00
Sergey Kurt
9bafa2f158 MSSQL Upsert statement 2017-03-21 13:04:07 +03:00
Sergey Kurt
6bc6b1690c Fixed FK constraints 2017-03-20 12:50:33 +03:00
Sergey Kurt
13bdda4e20 Simplified insert query 2017-03-19 18:12:06 +03:00
Sergey Kurt
68ac8a3c34 Disabled UseLastInsertID in favor of query output params 2017-03-19 18:05:55 +03:00
Sergey Kurt
d40d074320 Filtering columns with auto values 2017-03-19 12:44:15 +03:00
Sergey Kurt
12dce9d986 Auto columns in Inserts removed 2017-03-19 12:42:55 +03:00
Sergey Kurt
a508530f63 Allow UseLastInsertID 2017-03-19 12:39:59 +03:00
Sergey Kurt
49d052af53 FKs moved to alter caluse 2017-03-19 12:34:19 +03:00
Sergey Kurt
e6c6056353 Fixed CREATE DATABASE query 2017-03-19 00:02:14 +03:00
Sergey Kurt
ff5957e4e8 Fixed queries 2017-03-18 17:30:35 +03:00
Sergey Kurt
ccb0c9f6c8 Missed placeholder 2017-03-18 16:22:31 +03:00
Sergey Kurt
97e32c21be Default MS SQL sslmode and port for viper 2017-03-18 15:50:03 +03:00
Sergey Kurt
7162e9e927 Fixed default port for MS SQL 2017-03-18 15:47:52 +03:00
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