Aaron L
2819c1c889
Fix some missing parallels
2016-06-19 14:50:35 -07:00
Aaron L
14a335cc99
Improve command error reporting & validation
2016-06-19 14:47:50 -07:00
Aaron L
a722998d40
Foreign keys were not being pulled properly
...
- Fix many comments.
2016-06-19 14:46:10 -07:00
Patrick O'brien
fc4efc782d
Finished Bind template test (added slice route)
2016-06-15 02:15:58 +10:00
Aaron L
b37c894925
Fix the sql that postgres driver uses
2016-06-14 07:53:36 -07:00
Aaron L
44cff02828
Correct main help output
2016-06-14 07:52:58 -07:00
Patrick O'brien
1508d85cb6
Finish Bind test, renamed querymods package
...
* Rename querymods qs package to qm
* Refactor comparing values in template tests to remove redundancy
2016-06-15 00:01:28 +10:00
Patrick O'brien
e49df72e84
Added Count() test to template tests
2016-06-14 23:15:32 +10:00
Patrick O'brien
6ee58a6529
Fixed the same bugs I already fixed (again)
2016-06-14 22:58:46 +10:00
Aaron L
57e20dfd72
Fix some problems with viper setup.
...
- Fix error reporting throughout the executable side of the project.
2016-06-12 15:35:38 -07:00
Aaron L
e0f461014b
Fix some configuration bits.
...
- Refix the panics that were occuring (almost all of them).
2016-06-12 12:08:34 -07:00
Aaron L
56234e37a1
Move main back to root folder.
...
- Change everything to package main.
- Make main a little more user friendly.
2016-06-12 11:19:23 -07:00
Patrick O'brien
0bb847c0da
Refactor Where clause, add to insert builder
...
* Fix Find template comparison, replace DeepEqual
2016-06-12 07:55:23 -07:00
Aaron L
5fc40c9226
Refactor output
2016-06-12 00:32:46 -07:00
Patrick O'brien
3352220c53
Merge branch 'master' of github.com:nullbio/sqlboiler
2016-06-12 16:50:38 +10:00
Patrick O'brien
3f289848ce
Add singles imports to TestTemplates
...
* Add byte slice comparison helper to test templates
2016-06-12 16:41:04 +10:00
Patrick O'Brien
b2ae6cb688
Merge pull request #18 from nullbio/random-improvements
...
Random improvements
2016-06-12 16:35:38 +10:00
Aaron L
fd7a564af4
Move State to the SQLBoiler file where it belongs
2016-06-11 23:27:39 -07:00
Aaron L
e95331bcb8
Fix the panic and error handling in main
2016-06-11 23:19:14 -07:00
Aaron L
131b833bbf
Fix main
2016-06-11 18:37:36 -07:00
Aaron L
8757c8a184
Refactor entire project :D
...
- Move most files to root
- Remove cmds directory in favor of cmd directory with binary
- Remove all cobra from main
2016-06-11 18:25:00 -07:00
Aaron L
612b670048
Improve output documentation.
2016-06-11 16:37:01 -07:00
Aaron L
5c4047b9a6
Fix generating models for join tables
2016-06-11 16:35:39 -07:00
Aaron L
7bc9a4de1e
Rename Single -> Singleton
...
- Remove some possible absolutely path nightmares
2016-06-11 16:35:26 -07:00
Aaron L
d97e826265
Fix some documentation and ugly constant placement
2016-06-11 15:09:46 -07:00
Patrick O'brien
98e0b1f2ad
Fixed unit test comparison bug for Null types
...
* Set randomized field values to zero value for objects with Valid false
This ensures the types will match the zero values returned from the
db.
* Reverted make statements to proper initialization format
2016-06-11 18:30:56 +10:00
Patrick O'brien
ca9d296f99
Change randomizeField decimals to X.X precision
...
* This was done to reduce conflicts with DB constraints on decimal cols
* when comparing data objects in the unit tests
2016-06-11 01:18:01 +10:00
Patrick O'brien
8cc14ce48f
Change RandomizeStruct float to single decimal
...
* Now only uses single decimal precision (0.0-0.9) to avoid conflicting
* with any database decimal constraints and causing data mismatch.
2016-06-11 00:57:59 +10:00
Patrick O'brien
e99bb09856
Added finisher template tests
...
* Added randDate function
2016-06-11 00:22:08 +10:00
Patrick O'brien
8cb58511a0
Finish Find template tests
...
* Add reflect import to template tests
2016-06-10 18:53:15 +10:00
Patrick O'brien
fb34fa6dab
Fix delete template test bug
...
* Begin Find template tests
2016-06-10 15:44:20 +10:00
Patrick O'brien
62fe6a775c
Merge branch 'master' of github.com:nullbio/sqlboiler
2016-06-10 15:39:19 +10:00
Patrick O'brien
d211550706
Split Delete tests appropriately
2016-06-10 15:38:58 +10:00
Patrick O'Brien
c5fd8f8018
Update README.md
2016-06-10 15:23:47 +10:00
Patrick O'brien
9ede42c577
Added args to delete query builder
...
* Fixed delete query builder WHERE bug
* Finished Delete template tests
2016-06-10 15:20:26 +10:00
Patrick O'brien
c34f09aa55
Added helpers tests
...
* Added slice and singular object helper for primaryKeyArgs
2016-06-10 14:40:02 +10:00
Patrick O'brien
ecb20cca4a
Added RandomizeSlice function
2016-06-10 12:09:48 +10:00
Patrick O'brien
1e412cec74
Added COUNT function to select query builder
2016-06-10 09:43:45 +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
a20574110c
Added SortByKeys to insert
2016-06-07 17:08:00 +10:00
Patrick O'brien
d0b494600e
Fixed BuildQuery test
2016-06-07 16:45:06 +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
37a333f6ff
Added SortByKeys
...
* Fixed slice allocations in strmangle helpers
* Removed duplicate commaList function
2016-06-07 16:21:00 +10:00
Patrick O'brien
4ad069f64d
Finish BindAll implementation
2016-06-07 14:38:17 +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
3152eed170
Added debug mode, test singles
...
* Where statement OR/AND support
* Added null-extended library to use different data types
* Added disable triggers function for test main
2016-06-03 07:07:51 +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
Patrick O'brien
019ab3b502
Finished finishers
2016-05-10 20:20:29 +10:00
Patrick O'brien
8f3ff66339
Finished insert and update, added UpdateAt
2016-05-06 19:31:51 +10:00
Patrick O'brien
92e2608a1b
Finished Update and UpdateX (needs make and copy)
...
* Added test for camelCaseCommaList
* Added function signature for UpdateAt and UpdateAtX
* Moved column type slices to helpers.tpl
2016-05-05 19:01:24 +10:00