Aaron L
5149df8359
Move everything to better package structure
2016-09-14 20:45:09 -07:00
Patrick O'brien
793522650c
Add lq, rq, and indexplaceholders args everywhere
2016-09-10 05:15:50 +10:00
Patrick O'brien
ce8573eccd
Updated to null.v5, update postgres driver types
2016-09-07 23:50:54 +10:00
Aaron L
acad9f7de5
Finish Insert() caching.
2016-09-03 12:47:27 -07:00
Aaron L
67f72d4596
Export some functions we'll need.
...
- Add a second layer of caching so it can be exploited by models
2016-09-03 11:37:56 -07:00
Aaron L
e0ea582e37
Allow binding to []struct, not just []*struct
2016-09-03 10:43:32 -07:00
Aaron L
08dc7a5cc1
Add extra type information everywhere for binding.
2016-09-03 10:33:28 -07:00
Aaron L
988cb2bf04
saving in case of emergency
2016-09-03 08:00:16 -07:00
Patrick O'brien
09fb8005f6
Add TitleCase cache
2016-09-02 17:55:16 +10:00
Patrick O'brien
530aec1e16
Remove pointers to L, not needed
2016-09-02 11:10:00 +10:00
Patrick O'brien
fd07a1a6a7
Move loaders off R to a new struct L
2016-09-02 11:03:59 +10:00
Aaron L
2d0924a625
Remove a bunch of unused code.
...
- Optimize the TitleCaseIdentifier loop
2016-08-31 21:34:10 -07:00
Aaron L
7fb0e43648
Start optimization on bind
2016-08-31 21:34:10 -07:00
Aaron L
32b5952c96
Make sure we pass around the addr of slices.
...
- Use reflect.Indirect instead of .Elem()
2016-08-29 22:49:02 -07:00
Aaron L
f2b8f39d47
Initial nested eager load.
2016-08-29 22:49:02 -07:00
Aaron L
f489e22ab4
Rename Loaded -> R
2016-08-26 21:40:29 -07:00
Patrick O'brien
2179570afd
Speed up getBoilTag
2016-08-26 12:26:58 +10:00
Aaron L
28e485603a
Add fast path for binding by caching TitleCase
2016-08-23 23:20:41 -07:00
Aaron L
d130354890
Fix eager loading, off-by-one pointer
2016-08-23 22:07:51 -07:00
Aaron L
509fe44f4e
Rename Relationships struct to Loaded
2016-08-22 21:54:02 -07:00
Patrick O'brien
3cdfc6237a
Added parallel to some missing tests
2016-08-18 22:29:14 +10:00
Aaron L
3ecb8f96c0
Fix the loadRelationships code & test
2016-08-17 18:52:42 -07:00
Patrick O'brien
8806e76d9f
Nearly finished relationship bind helper
...
* If only reflection would be nice
2016-08-18 03:56:00 +10:00
Aaron L
7ce4146854
Add GetSliceValues to help clean up eager loads
2016-08-16 22:14:07 -07:00
Patrick O'brien
99b292b1ee
Update query builder to make queries readable
...
* Finish DeleteAll for slice and query
* Fixed some formatting and comments
2016-08-09 20:19:42 +10:00
Aaron L
d999c7b4d7
Fix failing test.
...
- Let's not be smart about renames in Bind(), just do the normal thing
and bind to whatever the user's asked us to.
2016-08-08 00:20:19 -07:00
Aaron L
113754d38b
Finish bind tests
...
- One test failing because lack of idMap usage
2016-08-07 18:07:37 -07:00
Aaron L
ee2b4e7990
Rewrite bind.
...
- Break bind down into separate functions
- Implement naming inference in bind for multiple tables
- Make One and All take the same code path mostly
2016-08-07 18:07:37 -07:00
Patrick O'brien
f45d137f5f
Added panic functions
...
* Fixed linter errors
* Added lots of missing comments
* Fixed broken boil tests
* Skipped unfinished functions instead of error
2016-07-16 21:22:57 +10:00
Patrick O'brien
4036786b6a
Got insert testing in a better state
...
* Split up insert function for testing
* Add DBType to global state
* Move test reflection helpers to testing.go
* Add incremental seed to randomizeField to avoid duplicate constraint
error messages
* Fixed Viper SSL default bug
* Fixed pgpass SSL inclusion bug
* Add MakeStringMap strmangle helper
* Change test errors from error to skip
2016-07-14 02:51:40 +10:00
Patrick O'brien
013b3ae0f8
Added more reflect helpers
2016-07-09 02:39:36 +10:00
Patrick O'brien
08d168605f
Added more insert test, added comments
...
* Added IsZeroValue helper
2016-07-08 01:59:07 +10:00
Patrick O'brien
7aba7104a5
Fix null package imports, finish Bind
...
* Fix randomizeStruct time randomization
* Defer close sql.Rows
* Begin Delete test template
2016-06-08 15:45:34 +10:00
Patrick O'brien
8a7926664c
Removed null for null-extended
...
* Fixed broken RandomizeStruct test
2016-06-07 16:42:19 +10:00
Patrick O'brien
3e467f2329
Fixed some bugs, added GetSelect
...
* Begun BindAll, Bind and BindOne
2016-06-05 16:13:38 +10:00
Patrick O'brien
c2541ea56e
Begun implementing all tests
...
* Added randomizeStruct
* Added under development warning to readme
* Restructured the reflection stuff a bit
* Added a testmangle.go file for template test functions
2016-05-17 20:00:56 +10:00