Patrick O'brien
b3230c2757
Fix insert with goto
2016-09-15 14:46:03 +10:00
Patrick O'brien
e52fac9c5e
Fix indentation
2016-09-15 14:27:06 +10:00
Patrick O'brien
01f08efe8a
Fix lint errors for generated package
2016-09-15 14:21:33 +10:00
Aaron L
f803cdd6bd
Fix all references to moved elements.
2016-09-14 21:02:24 -07:00
Patrick O'brien
f6b4d3c6fd
Rename exec funcs to conform to sql stdlib
2016-09-15 02:14:30 +10:00
Patrick O'brien
1c28f761f1
Upsert fixed
2016-09-15 01:36:36 +10:00
Patrick O'brien
931f3d2de5
Fix mock driver compat with upsert
2016-09-14 18:27:20 +10:00
Patrick O'brien
83f7092dc6
Add MySQL Upsert, fix identation in all tpls
2016-09-14 18:14:07 +10:00
Aaron L
a86e794b61
Fix composite primary keys for DeleteAll
2016-09-13 17:20:13 -07:00
Patrick O'brien
91bb5ee940
Change Exec funcs to methods with Query receiver
2016-09-13 19:46:32 +10:00
Aaron L
1facccacc1
Fix an edge case for MySQL
...
- This patch removes auto-generation of queries that have the pattern
COUNT(tablename.*) which is a syntax error in mysql.
2016-09-13 00:48:14 -07:00
Aaron L
b1e8816d42
Fix update all
2016-09-12 23:49:18 -07:00
Aaron L
912693a124
Update parameter generation for mysql
2016-09-12 23:28:23 -07:00
Aaron L
37a05de380
Fix a mistake in the insert query
2016-09-11 23:50:11 -07:00
Aaron L
8392a4ba2a
Fix quoting throughout templates
...
- Use "" style strings for all templates
- Attach a Quote and SchemaTable that understand escaped quotes so we
can use "" style strings without repercussion.
- Make SchemaTable use escaped quotes
- Remove schemaTable from the templates in favor of .SchemaTable
2016-09-11 23:50:11 -07:00
Patrick O'brien
793522650c
Add lq, rq, and indexplaceholders args everywhere
2016-09-10 05:15:50 +10:00
Patrick O'brien
419f2760c7
Change quotes to bytes
2016-09-10 03:30:46 +10:00
Patrick O'brien
9e6a3d5ee3
Add quote dialects
2016-09-10 03:14:18 +10:00
Patrick O'brien
ac02f7d2e0
Fix broken relationship templates by adding schema
2016-09-09 22:31:51 +10:00
Patrick O'brien
1c8a9d2e39
Add schema feature to everything (except rels)
...
* Add strmangle SchemaTable helper
2016-09-09 07:23:10 +10:00
Patrick O'brien
4e8191b8dd
Add struct tags flag
2016-09-04 23:44:54 +10:00
Aaron L
22f67ab4ed
Make sure to only write to cache when needed
2016-09-03 23:46:21 -07:00
Aaron L
ecfa35350c
Finish update optimization.
2016-09-03 22:53:42 -07:00
Aaron L
0ebccdb20a
Try and fix MySQL a little bit.
2016-09-03 12:50:31 -07:00
Aaron L
acad9f7de5
Finish Insert() caching.
2016-09-03 12:47:27 -07:00
Aaron L
793306d749
Fit caching in to insert.
2016-09-03 12:24:18 -07:00
Aaron L
e1bfd9d0da
Remove TitleCases from NonZeroDefaultSet
2016-09-03 11:54:23 -07:00
Aaron L
b522ab6a75
Fix spacing in setop methods.
2016-09-03 11:04:37 -07:00
Patrick O'brien
09fb8005f6
Add TitleCase cache
2016-09-02 17:55:16 +10:00
Aaron L
b101df0a24
Make sure join tables get ToMany Set/Remove
2016-09-01 23:33:18 -07:00
Patrick O'brien
4b1c934751
Remove pointers to L, not needed
...
* Add no-tests flag
2016-09-02 11:22:56 +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
b5d3b60b3a
ToOne Set Remove no longer uses ...
2016-08-31 21:38:25 -07:00
Patrick O'brien
67ae024439
Unexport Relationship struct
2016-09-01 13:33:05 +10:00
Patrick O'brien
d56e28a36d
Fix Location pointer
2016-09-01 11:24:39 +10:00
Patrick O'brien
8f6191c4d2
Move buildUpsertQuery to boil
2016-09-01 11:20:16 +10:00
Patrick O'brien
87b1f90c43
Fix Find name
2016-09-01 11:16:21 +10:00
Patrick O'brien
e33da59f0b
Update hook names
2016-09-01 11:12:46 +10:00
Aaron L
79d8642d8d
Put setops into their final resting place.
2016-08-29 22:58:55 -07:00
Patrick O'brien
629ec8c8d0
Add hooks to eager load funcs
...
* Add PreserveDots text helper
* Fix bug using wrong XTitleCases name
2016-08-30 02:36:07 +10:00
Patrick O'brien
ccdfc93fee
Add auto timestamps for upsert
...
* Add IsZero checks for auto timestamps
2016-08-29 23:23:42 +10:00
Patrick O'brien
7f24185544
Add executor to hooks
2016-08-29 23:23:42 +10:00
Aaron L
9553f462c7
Merge branch 'sets'
2016-08-28 23:29:47 -07:00
Aaron L
ae99b2a649
Finish ToManyRemove.
...
- Make Set test better.
2016-08-28 23:26:44 -07:00
Aaron L
d9931fe7ba
Finish Set
2016-08-28 21:12:04 -07:00
Aaron L
4ba1849297
Finish ToManyAdd
2016-08-28 16:51:07 -07:00
Aaron L
4e70c9bb17
Near completion on the ToManyAdd setop
2016-08-28 16:36:49 -07:00
Aaron L
0eea12fb75
Complete removal on the remove method
2016-08-28 15:01:37 -07:00
Patrick O'brien
96d40fcfe4
Add automatic timestamps for created_at/updated_at
...
* Update and Insert
* Add --no-auto-timestamps flag
2016-08-29 00:12:37 +10:00
Patrick O'brien
677d45cef4
Add delete and insert hooks to templates
2016-08-28 22:16:08 +10:00