Alex Grintsvayg
77fc991e7b
new location for null.go
2018-02-22 13:41:05 -05:00
Alex Grintsvayg
e4a52e21b6
switch to our errors package
2018-02-07 09:35:46 -05:00
Alex Grintsvayg
0b0a1f21c2
allow generic interface or real sql tx
2017-09-02 11:52:31 -04:00
Alex Grintsvayg
cd445bf2f4
revert interpolateParams, since we're doing our own logging now
2017-09-02 11:31:15 -04:00
Alex Grintsvayg
55f42bc038
just use interfaces
2017-08-24 11:58:13 -04:00
Alex Grintsvayg
544ff7afdd
typo
2017-08-23 17:03:24 -04:00
Alex Grintsvayg
faec346481
use interface to enable custom Tx types
2017-08-23 16:59:29 -04:00
Alex Grintsvayg
3abac13aeb
export InterpolateParams
2017-08-23 16:37:33 -04:00
Alex Grintsvayg
8837a986ee
consistent order to unique key columns
2017-08-23 13:36:13 -04:00
Aaron L
ce9d13abf0
Fix hook documentation to include error return
...
Fix #171
2017-08-01 14:40:58 -04:00
Aaron L
ca9f47de8b
Correct nullability for tests in to_one
...
- Use the nullability of the fkey column in question to determine
nullability for the entire struct to make things easy, otherwise
we'd have to pluck out one at a time. This makes the tests pass
instead of fail sporadically.
- Fix #160
2017-08-01 14:40:38 -04:00
Aaron L
e339812027
Stop using aliases in the relationship select
...
- This caused issues with mysql who doesn't understand the syntax:
"delete from x as y where y.id = ?"
2017-08-01 14:39:10 -04:00
Guy Tish
23f245776d
Added table columns and table names as anonymous struct
2017-08-01 14:27:50 -04:00
Alex Grintsvayg
99a3a1d091
make merge compatible with an existing transaction
2017-08-01 13:00:14 -04:00
Alex Grintsvayg
9c8262b702
fix exists() finisher
2017-07-20 10:50:55 -04:00
Alex Grintsvayg
05c7f7d06a
switch to more complete null package, implement nicer sql logging
2017-07-06 15:15:00 -04:00
Alex Grintsvayg
ed423a3606
detect autoincrement column, fix lastID in upsert when update doesnt change anything
2017-06-12 14:02:04 -04:00
Alex Grintsvayg
09c585cdb1
dont run delete query when there's nothing to delete
2017-06-01 09:58:50 -04:00
Alex Grintsvayg
912a689701
added unique key detection (mysql only for now), improved merging
2017-05-12 06:56:48 -04:00
Alex Grintsvayg
31fe8b6e1d
model merging
2017-05-10 15:35:05 -04:00
Alex Grintsvayg
b160e5c1f4
dont error if no rows found
2017-05-10 11:21:29 -04:00
Alex Grintsvayg
ed43c9078f
made query structs public, added IS NULL to filter
2017-05-09 15:30:04 -04:00
Alex Grintsvayg
f863ecb48e
add model Filters, FindOrCreate methods, IsNew()
2017-05-08 16:39:16 -04:00
Alex Grintsvayg
451723ccb9
fix imports to point at lbryio repo
2017-05-08 13:25:15 -04:00
Alex Grintsvayg
687b0506db
Merge branch 'mysql-uint-fix'
...
* mysql-uint-fix:
detect unsigned int columns in mysql
2017-05-08 13:12:48 -04:00
Alex Grintsvayg
1467b88f04
detect unsigned int columns in mysql
2017-05-08 13:10:21 -04:00
Aaron L
070df18197
Add mailing lists
2017-05-01 19:44:52 -07:00
Aaron L
3b5ab423b3
Bump version
2017-05-01 18:41:49 -07:00
Aaron L
632b89fae0
Merge branch 'dev'
2017-05-01 18:41:02 -07:00
Aaron L
112a836af2
Make UDT's that aren't enums fall through
...
- This allows typse that are not enumerations to properly escape the
enumeration code in the query.
- Fix #131
2017-04-28 21:07:39 -07:00
Aaron L
7a8d78cceb
Merge branch 'mssql_tests' into dev
2017-04-28 20:08:34 -07:00
Aaron L
ecad5334fb
Fix MySQL protocol selection
...
- If MySQL host exists on the filesystem as a file, then expect that
this is actually a unix socket. If not, add protocol=tcp to force the
mysql client to use tcp otherwise it tries unix sockets for no reason.
Thanks MySQL.
2017-04-28 20:01:27 -07:00
Aaron L
196b4099a1
Merge branch 'nemec/mssql_tests' into mssql_tests
2017-04-28 19:30:12 -07:00
Sergey Kurt
a3442a5ab4
Fixed INSERT-SELECT deadlocks in tests
2017-04-28 23:58:17 +03:00
Aaron L
a9264e6447
Merge branch 'maks/fix_noauto_template' into dev
2017-04-24 10:15:00 -07:00
Maksim
bdd28d9d5b
fix removing whitespace
2017-04-24 12:46:56 -04:00
Aaron L
7de817b111
Add dep fetch to tests part
2017-04-23 17:33:47 -07:00
Aaron L
0b44c26a26
Add passwords to psql/mysql
2017-04-23 16:39:36 -07:00
Aaron L
36ae141304
Turn off PSQL SSL in tests
2017-04-23 16:22:10 -07:00
Aaron L
85c9104d34
Fix syntax error
2017-04-23 16:17:46 -07:00
Aaron L
5ee4b06c9b
Move CircleCI file to correct spot
2017-04-23 16:16:07 -07:00
Aaron L
3a38ed1f7a
Add Dockerfile
2017-04-23 16:14:37 -07:00
Aaron L
e4d1e606fd
CI for mssql
...
- Fix a bug where mysql was never tested in CI (hah!)
2017-04-23 16:00:24 -07:00
Aaron L
6a0817d37d
Update benchmark section
2017-04-23 14:28:21 -07:00
Aaron
5a33894412
Add contribution guidelines
2017-04-16 11:59:13 -07:00
Aaron
d9b991e487
Merge remote-tracking branch 'michsior/dev' into dev
2017-04-16 11:35:12 -07:00
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