Mark Beamer Jr
3db4f30f56
Fix multi-depth eager loading of relationships. If a relationship is nil, do not add it to the collection for checking the next depth level.
2020-08-19 23:43:39 -04:00
Niko Storni
256a6d4225
update lbry.go library
2020-03-05 16:29:03 -05:00
Mark Beamer Jr
c01b182839
Allow null query mods for dynamic queries
2019-07-01 23:54:54 -04:00
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
3baa9e72ca
Updated to use the latest lbry.go changes
2019-01-10 20:11:42 -05: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
cd445bf2f4
revert interpolateParams, since we're doing our own logging now
2017-09-02 11:31:15 -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
451723ccb9
fix imports to point at lbryio repo
2017-05-08 13:25:15 -04: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
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
cbdbe4891a
MSSQL rows limit/offset via TOP or OFFSET ... FETCH NEXT ... ROWS
2017-03-14 11:13:56 +03: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
b7cd6f3f99
Add additional nil checks to the eager loading code
...
- Needed a couple nil checks in the eager loading code. The tests didn't
(and now do) cover the case where an eager load function returns
empty or nil things.
- Fix #66
2016-11-15 21:56:59 -08:00
Aaron L
a8330b18ad
Fix a len(0) check that wasn't occurring
2016-11-15 20:34:36 -08:00
Patrick O'brien
86ca3bbcea
Fixed import paths for null package, add byte typ
2016-11-12 12:02:44 +10:00
Aaron L
480ba81555
Fix documentation bug.
2016-11-08 18:27:26 -08:00
Aaron L
de8f0bc26e
Fix #55
...
- Previously each call to qm.Load would overwrite your eager loading
statement. I think this was deliberate at one point but it's pretty
inconsistent. If we need to overwrite we can call queries.SetLoad()
2016-09-30 23:24:42 -07:00
Aaron L
8ee2fc0c08
Fix one bug in eager loading
...
- Improve testing in eager loading a lot
2016-09-29 08:17:13 -07:00
Aaron L
718691fc53
Use graph descent approach to pass tests
...
- The problem with the old approach is that it was looping over each
result, and then recursing in and doing it's loading. But in reality
we should only load from a table in a capacity once (tomany, toone).
2016-09-28 23:57:15 -07:00
Aaron L
e625589ed1
Work in progress
...
- The eager loading is behaving correctly now
2016-09-28 19:57:38 -07:00
Patrick O'brien
d3f15c1953
Add tests for delete/deleteall
2016-09-20 16:55:36 +10:00
Patrick O'brien
c1dab978a5
Merge branch 'byteslicepkeys' into dev
2016-09-20 13:46:06 +10:00
Patrick O'brien
910c4b66ee
Fix fish DeleteAll bug
2016-09-19 19:30:50 +10:00
Patrick O'brien
4a9e7a1b1a
Fix upsert for mysql
2016-09-19 17:51:06 +10:00
Aaron L
de7ba2fa8e
Clean up the reflect tests.
2016-09-14 23:20:42 -07:00
Aaron L
f6323d5ebe
Delete unused code
2016-09-14 23:06:06 -07:00
Patrick O'brien
78de983d7d
Fix calls to Raw and RawG
2016-09-15 15:13:09 +10:00
Aaron L
12967f7b66
Fix up the interface to raw queries.
2016-09-14 20:58:18 -07:00
Aaron L
5149df8359
Move everything to better package structure
2016-09-14 20:45:09 -07:00