Commit graph

76 commits

Author SHA1 Message Date
Patrick O'brien
d5eb79ae28 Fix formatting (gofmt -s for goreportcard.com) 2016-09-05 21:47:17 +10:00
Patrick O'brien
4e8191b8dd Add struct tags flag 2016-09-04 23:44:54 +10:00
Patrick O'brien
6ba9e17ebf Fix buf call after put buffer call 2016-09-04 09:29:59 +10:00
Patrick O'brien
9eab490f7d Remove vendor folder, fix inflect import 2016-09-03 02:20:36 +10:00
Patrick O'brien
8f59486adc Remove titlecaseidentifier printf spam 2016-09-03 02:18:14 +10:00
Patrick O'brien
09fb8005f6 Add TitleCase cache 2016-09-02 17:55:16 +10:00
Aaron L
2d0924a625 Remove a bunch of unused code.
- Optimize the TitleCaseIdentifier loop
2016-08-31 21:34:10 -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
Aaron L
48dc259841 Added proper pluralization for cookie 2016-08-22 21:54:02 -07:00
Aaron L
1e66a194bd Fix one more problem. 2016-08-21 23:00:22 -07:00
Aaron L
248c45d1f6 Optimize TitleCase more.
- Remove support for insane cases of 9test as well as id9e9
- Code cleanup
2016-08-21 22:49:57 -07:00
Patrick O'brien
604fbea7de Slight adjustment to TitleCase 2016-08-22 15:10:15 +10:00
Patrick O'brien
c4526d4d2c Optimize TitleCase 2016-08-22 13:50:54 +10:00
Patrick O'brien
cd7e45efaa Fix bugs for table only containing composite pkey
* Add more tables to test schema
* Add string slice match helper
2016-08-21 15:44:49 +10:00
Patrick O'brien
56faec6476 Change inflector to bitbucket inflect 2016-08-21 13:40:20 +10:00
Patrick O'brien
7f706531a7 Remove useless space 2016-08-21 12:34:18 +10:00
Patrick O'brien
d40058c3ce Fix output of randomizer 2016-08-19 19:56:27 +10:00
Patrick O'brien
d28b3f4b62 Finish WHERE IN feature
* Fix bug with appendOr/And ordering
2016-08-19 03:21:53 +10:00
Patrick O'brien
94d36d7bf7 Begin IN implementation 2016-08-17 15:19:23 +10:00
Patrick O'brien
984e5f9bac Uppercase any non-words (words w/o vowels aeiouy)
* This lets us find accronyms easily, example:
db, ssn, tx, etc.
2016-08-15 19:51:00 +10:00
Patrick O'brien
76d4b84019 Convert all tests to go 1.7 Run format
* This fixes postgres deadlocks
2016-08-15 19:36:38 +10:00
Aaron L
c278bb6667 Remove unused code from templates 2016-08-14 00:43:30 -07:00
Aaron L
efa1fbb80a Big refactor of generated code
- Stop generating helper functions for each model
- Move Insert/Update/Upsert query generation helpers to strmangle
- Add tests for query generation helpers
- Delete a lot of the Insert/Upsert tests that test the query generation
  helpers.
- Use tx for more of the tests.
2016-08-13 21:21:26 -07:00
Aaron L
ab88d8511d Move string set operations to strmangle
- Delete MakeDBName (unused)
- Rename HasElement to SetInclude
2016-08-13 16:34:02 -07:00
Patrick O'brien
799c35125f Move DriverUsesLastInsertID to correct package 2016-08-14 00:07:22 +10:00
Patrick O'brien
bd92e49ff0 BufPool WhereClause 2016-08-14 00:01:06 +10:00
Patrick O'brien
5922dc89bd BufPool SetParamNames 2016-08-13 23:59:02 +10:00
Patrick O'brien
ce65125ade BufPool Placeholders 2016-08-13 23:55:52 +10:00
Patrick O'brien
ab9e5c89bd BufPool MakeStringMap 2016-08-13 23:54:57 +10:00
Patrick O'brien
d7e5bf1ef7 BufPool TitleCase and CamelCase 2016-08-13 23:48:31 +10:00
Patrick O'brien
ddb3aff125 BufPool Singular and Plural 2016-08-13 23:39:13 +10:00
Patrick O'brien
e4800f9af8 BufPool for Identifier 2016-08-13 23:30:53 +10:00
Patrick O'brien
8d92b5a9dd Add buf pool to IdentQuote 2016-08-13 18:07:45 +10:00
Patrick O'brien
19b4b722e7 Fix placeholder output 2016-08-13 17:57:13 +10:00
Patrick O'brien
dd71e0907a Add byte buffer pool 2016-08-13 17:49:39 +10:00
Patrick O'brien
d92a439c54 Modify postgres query to get is_unique for indexes
* Remove unused SnakeCase function
* Fix formatting bug in relationship structs
2016-08-13 17:30:55 +10:00
Patrick O'brien
e3f319346f Finish UpdateAll query builder
* Add modifiers to delete builder
* Update golden file tests
* Add startAt to whereClause
2016-08-11 18:23:47 +10:00
Patrick O'brien
3431919269 Fix broken whereclause test 2016-08-09 18:11:28 +10:00
Patrick O'brien
2ece7d14f6 Clean up helpers, remove duplicate funcs
* Refactor DeleteAll for slice
2016-08-09 15:57:54 +10:00
Aaron L
8e3c1d41da GenerateParamFlags -> Placeholders
- Rewrite Placeholders to not use as much wizardry and magnetism
2016-08-08 20:19:26 -07:00
Aaron L
a98e474c9c Refactor WhereMultiple into new WhereClause 2016-08-08 19:33:10 -07:00
Aaron L
b1d1b30724 Fix where clauses for templates 2016-08-08 17:36:37 -07:00
Aaron L
005218d61f Add WhereMultiple
- Change the order of the args in WhereClause to support varargs
2016-08-08 17:36:37 -07:00
Aaron L
097de57e59 Add InClause 2016-08-08 17:36:37 -07:00
Patrick O'brien
fa8e431349 Add ReloadAll for ObjectSlice
* Fix RandomizeSlice bug overwriting blacklisted columns
* Add GroupAt param to param flags generator
2016-08-08 23:30:29 +10:00
Patrick O'brien
15ea874a75 Add SnakeCase 2016-08-08 09:34:11 +10:00
Aaron L
01124d9d0b Add IdentQuoteSlice 2016-08-03 21:46:58 -07:00
Aaron L
20fe91c398 Make identquote understand * 2016-08-03 19:19:09 -07:00
Patrick O'brien
0a2507178e Fix silly regexp pattern 2016-08-03 15:31:59 +10:00
Patrick O'brien
c7c0fe5c0d Add provision for enforced types, eg uuid
* Add enforced to column data
* Add enforced list to driver
* Fix bug in TitleCase (now uses regexp)
* Fix broken zero-value enforced type inserts by using RandomizeEnforcedStruct
2016-08-03 12:05:05 +10:00