Joakim Fernstad
6022d471e3
Fix area plural issue, add testcase
...
- Fix #168
2017-06-27 12:56:13 +02:00
Aaron L
833fd04c6b
Fix random typo
2017-06-04 11:19:03 -07:00
Sergey Kurt
21917fcfc6
Refactored if-else in WhereClauseRepeated
2017-03-18 15:32:39 +03:00
Sergey Kurt
f3f8074833
Removed blank lines and spaces
2017-03-18 15:18:04 +03:00
Sergey Kurt
bfab02bde1
WhereClauseRepeated func for repeated Where clause
2017-03-15 18:02:56 +03:00
Sergey Kurt
b3c4580efa
Fixed comment for SchemaTable
2017-03-14 12:45:50 +03:00
Sergey Kurt
54af37ef9a
SchemaTable with MSSQL support
2017-03-13 16:25:12 +03:00
Aaron L
8aa4e2148c
Use _ to avoid reserved words in func args
...
- Fix #107
2017-02-24 22:27:05 -08:00
Patrick O'brien
e992e327c2
Fix inflection bug for "ss" words (like address)
...
* Adjust inflect rules
* Bump version to 2.1.8
2017-01-24 13:31:43 +10:00
Patrick O'brien
cea636ef54
Update makeStringMap test
2016-11-12 16:02:39 +10:00
Patrick O'brien
86ca3bbcea
Fixed import paths for null package, add byte typ
2016-11-12 12:02:44 +10:00
Aaron L
ede97dea5b
Add enum const generation
...
- Make postgres name its enums
- Add way to filter columns by whether or not they're an enum
- Split parsing of enums into name & values
- Add strmangle check functions: IsEnumNormal, ShouldTitleCaseEnum
- Add new strmangle enum functions to template test
- Implement a set type called "once" inside the templates so that we can
ensure certain things only generate one time via some unique name.
2016-11-11 01:06:30 -08:00
Aaron L
d27823de53
Add enum string parsing
2016-11-09 23:45:11 -08:00
Aaron L
8d68f936e5
Added all golint acronyms to TitleCase
2016-11-08 18:38:59 -08:00
Aaron L
7e4113272d
Correct problem where constant diffs occurred
...
- One of our strmangle functions was afflicted by Go's map ordering,
force a sort keys on it.
2016-09-15 23:28:59 -07:00
Aaron L
912693a124
Update parameter generation for mysql
2016-09-12 23:28:23 -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
f14301de7b
Add things to shut tests up
2016-09-10 03:35:32 +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
817189fbfd
Fixed outstanding failed tests
2016-09-10 01:06:07 +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
ac42fbc2c7
Add json to uppercase words
2016-09-09 01:22:22 +10:00
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