Mark Beamer Jr
4e1b83ab39
Add force index query mod for select query.
...
Fix eager loading casting for nested levels.
2019-06-30 23:01:24 -04:00
Mark Beamer Jr
f892107dad
missing import
2019-02-07 20:24:07 -05:00
Mark
fadcbfa8b6
Merge pull request #3 from lbryio/merge_changes
...
added support for 1 to 1 relations and added support for n unique key…
2019-02-07 19:51:35 -05:00
Mark Beamer Jr
29172e976b
changed from Fatal to Error - copy paste mistake.
2019-02-07 18:20:23 -05:00
Mark Beamer Jr
eea3d349a7
added support for 1 to 1 relations and added support for n unique keys for conflict resolution during merging.
...
split out into two functions.
2019-02-07 18:20:22 -05:00
Mark
d180a095ca
Merge pull request #4 from lbryio/lbrygo_update
...
Updated to use the latest lbry.go changes
2019-01-10 20:13:22 -05:00
Mark Beamer Jr
3baa9e72ca
Updated to use the latest lbry.go changes
2019-01-10 20:11:42 -05:00
Mark
bc08aa6160
Merge pull request #2 from lbryio/test_authchanges
...
make it true
2018-06-06 19:05:29 -04:00
Mark Beamer Jr
466f2d5b2c
make it true
2018-06-06 19:03:50 -04:00
Mark
45ee5c902f
Merge pull request #1 from lbryio/test_authchanges
...
reverted default to native password authentication.
2018-06-06 18:57:40 -04:00
Mark Beamer Jr
8d4055e3eb
reverted default to native password authentication.
2018-06-06 18:26:33 -04:00
Alex Grintsvayg
396f42bc91
never update created_at, updated_at columns
2018-04-16 12:41:55 -04:00
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