Commit graph

772 commits

Author SHA1 Message Date
Aaron L
5449ce7c6c Bump to 2.1.3 2016-12-27 23:31:24 -08:00
Patrick O'brien
94a6604d19 Fix missing string array import 2016-12-27 23:29:36 -08:00
Aaron L
874efb1cce Bump 2.1.1 2016-11-15 22:03:11 -08:00
Aaron L
b6b16b8dd6 Fix combining relationship query mods
- Fix #67
2016-11-15 21:57:21 -08:00
Aaron L
b7cd6f3f99 Add additional nil checks to the eager loading code
- Needed a couple nil checks in the eager loading code. The tests didn't
  (and now do) cover the case where an eager load function returns
  empty or nil things.
- Fix #66
2016-11-15 21:56:59 -08:00
Aaron L
a8330b18ad Fix a len(0) check that wasn't occurring 2016-11-15 20:34:36 -08:00
Aaron L
ac48562dc2 Bump version 2016-11-12 00:12:04 -08:00
Aaron L
ca748b070d Merge branch 'dev' 2016-11-12 00:08:09 -08:00
Aaron L
0cd1b61926 Add enums to readme
- Fix a number of indentation and trailing space issues
2016-11-11 23:59:21 -08:00
Chhatoi Pritam Baral
d2eccc98ad Fix reading basedir from config and cli flag 2016-11-11 23:34:56 -08:00
Patrick O'brien
b2ddac4107 Update jstemmer package 2016-11-12 17:18:01 +10:00
Patrick O'brien
cea636ef54 Update makeStringMap test 2016-11-12 16:02:39 +10:00
Patrick O'brien
0d09921d4c Fix enum null.String support, add mysql support 2016-11-12 15:58:41 +10:00
Patrick O'brien
d891bcb9f0 Add randomize support for enums, add enums for pq 2016-11-12 15:47:24 +10:00
Patrick O'brien
6f0fce21b8 Update schema w/ nullbyte and byte, fix randomizer 2016-11-12 13:47:59 +10:00
Patrick O'brien
86ca3bbcea Fixed import paths for null package, add byte typ 2016-11-12 12:02:44 +10:00
Patrick O'brien
3d22dc0897 Merge branch 'dev' of github.com:vattle/sqlboiler into dev 2016-11-12 10:25:23 +10:00
Patrick O'brien
3bfdae6b5c Add boil.Byte type 2016-11-12 10:25:07 +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
cb6de17ea6 Add driver support for enums 2016-11-09 23:06:09 -08:00
Aaron L
8d68f936e5 Added all golint acronyms to TitleCase 2016-11-08 18:38:59 -08:00
Aaron L
480ba81555 Fix documentation bug. 2016-11-08 18:27:26 -08:00
Aaron L
3046214fb6 Ensure that relationship structs aren't clobbered
- There was no thought put in if a relationship struct already existed
  when it went to be used a second time so it was being clobbered.
- Fix #39
2016-11-08 18:25:15 -08:00
Patrick O
7fc3d63bf9 Update README.md
Add screencast link
2016-11-02 14:19:41 +10:00
Patrick O'brien
a25e3589e6 Make warnings for incompat data type readable 2016-10-16 19:37:28 +10:00
Patrick O'brien
00134a495a Add "ip" to uppercase words 2016-10-16 19:35:10 +10:00
Aaron L
11ce426457 Merge pull request #56 from SlinSo/mysql_ignore_views
mysql driver: query only base tables
2016-10-11 22:42:00 -07:00
Sven
bb5f3a4e6f mysql driver: query only base tables 2016-10-11 08:27:24 +02:00
Aaron L
42681453a9 Add a version command 2016-10-05 07:44:43 -07:00
Aaron L
de8f0bc26e Fix #55
- Previously each call to qm.Load would overwrite your eager loading
  statement. I think this was deliberate at one point but it's pretty
  inconsistent. If we need to overwrite we can call queries.SetLoad()
2016-09-30 23:24:42 -07:00
Aaron L
2c534361e1 When .LoadX gets called, create R structs
- Fix #51
- This is a waste of allocations, but in general makes for a much nicer
  user interface.
2016-09-29 19:32:43 -07:00
Aaron L
8ee2fc0c08 Fix one bug in eager loading
- Improve testing in eager loading a lot
2016-09-29 08:17:13 -07:00
Aaron L
718691fc53 Use graph descent approach to pass tests
- The problem with the old approach is that it was looping over each
  result, and then recursing in and doing it's loading. But in reality
  we should only load from a table in a capacity once (tomany, toone).
2016-09-28 23:57:15 -07:00
Aaron L
e625589ed1 Work in progress
- The eager loading is behaving correctly now
2016-09-28 19:57:38 -07:00
jseriff
b0182bead7 Fix cross schema constraints issue
Query was not properly joining on both name and schema.  This will fix the issue where a constraint exists across multiple schemas and causes duplicate relationships to be created.
2016-09-26 12:16:42 -05:00
Aaron L
05d901865a Merge branch 'dev' 2016-09-24 21:49:21 -07:00
Aaron L
32290d9236 Fix mysql LastInsertId() 2016-09-24 16:10:26 -07:00
Aaron L
5eb14f262a Add function to check LastInsertId-ability
- Previously we used a lot of template magic to see if we could
  use LastInsertId. But there's a much simpler check that's worth doing,
  do this at the table level and then let it fall through.
2016-09-24 15:58:37 -07:00
Aaron L
5f394a4f69 Fix one-to-one setops 2016-09-24 14:34:31 -07:00
Aaron L
09ed5709e5 Fix template spacing with new output
- The old templates used to output \n\n after each run, with the
  previous changes this is no longer the case and as such the templates
  all must be formatted correctly.
2016-09-24 00:52:18 -07:00
Aaron L
9e4b5b750c Refactor output.
- Simplify several methods
- Gofmt full output of templates, not individual pieces
- Re-use a global buffer to use less memory during template generation
- Simplify the tests since the main test is responsible for checking
  everything.
2016-09-24 00:51:02 -07:00
Aaron L
e9eda8fa1b Revert "Copy to_one_setops into one_to_one_setops"
This reverts commit e157a59714.
2016-09-24 00:23:17 -07:00
Patrick O'brien
0dc68e749e Fix pgpassfile for compat tests 2016-09-24 16:16:44 +10:00
Patrick O'brien
e157a59714 Copy to_one_setops into one_to_one_setops 2016-09-24 12:42:39 +10:00
Aaron L
fa2202abb2 Fix SetOp for half join tables 2016-09-22 23:17:54 -07:00
Aaron L
6401a277cf Be judicious about fkey naming 2016-09-22 22:11:30 -07:00
Aaron L
0530ba9227 Rename $rel -> $txt for consistency 2016-09-22 21:49:50 -07:00
Patrick O'brien
ec69111837 Update schemas 2016-09-23 12:29:58 +10:00
Aaron L
66dbe6a74c Fix erroneously flagged join tables 2016-09-22 00:21:12 -07:00