Commit Graph

  • 00df68d2d0 Merge commit '48e41440afa6a741a3e345f2cfbabca08f6fb1ac' into wing Wing Gao 2018-02-09 17:01:15 +08:00
  • 48e41440af Allow for proper table creation with Jsonb fields (#1758) Adrian Heng 2018-02-09 08:22:30 +08:00
  • 3f98904fe7 Update PULL_REQUEST_TEMPLATE.md, A vs. An (#1757) Louis Tran 2018-02-08 16:21:39 -08:00
  • 870443750c Update templates Jinzhu 2018-02-09 08:20:19 +08:00
  • 9c76bdaf49 Build documents Jinzhu 2018-02-09 08:14:51 +08:00
  • 792b9b3547 add section on Dialects to the documentation. For now, it only has info on PostgreSQL, but this can be extended later to include information on the other supported dialects. (#1759) Adrian Heng 2018-02-09 08:10:47 +08:00
  • 4f5c4c5e60 add section on Dialects to the documentation. For now, it only has info on PostgreSQL, but this can be extended later to include information on the other supported dialects. Adrian 2018-02-09 01:38:16 +08:00
  • e8fa95420f ran gofmt and did some minor tweaks to satisfy CodeClimate Adrian 2018-02-09 00:16:43 +08:00
  • 300cf4acd7 move the json check to its own function Adrian 2018-02-09 00:11:14 +08:00
  • feb013c976 DataTypeOf should now correctly identify dataValues that are 'json.RawMessage' types as 'jsonb' columns Adrian 2018-02-08 23:58:03 +08:00
  • 9e6d66ae83
    Update PULL_REQUEST_TEMPLATE.md, A vs. An Louis Tran 2018-02-07 23:05:28 -08:00
  • 001b074d5f
    Merge 3b41aa8f6636908f0f2e0ab75e4e0ade64bac885 into 87fc1b24737a885147240041293603eceb844356 wmin0 2018-02-06 17:26:46 +00:00
  • a0ec14b9a5
    Merge 386bc9925c070ea36dae3f63488abb0fe8da3309 into 87fc1b24737a885147240041293603eceb844356 Andrey Nering 2018-02-04 18:12:08 +00:00
  • 4be4b87efb remove sslmode=disable from postgresql (#1748) Jonas Droste 2018-02-04 01:22:52 +01:00
  • 87fc1b2473 Refactor PR #1751 Jinzhu 2018-02-03 20:27:19 +08:00
  • f61cd769da
    Merge 9340b97a0b1b3bf37f77df3d482673781b88a11d into 802104cc7cfe58153cccc9bc76e5b9078296c16b Reza Mohammadi 2018-02-03 08:55:17 +00:00
  • 57f031e083 Use table name to guess current database if none is given Piyush Mishra 2018-02-02 22:29:40 +05:30
  • 802104cc7c Use BuildKeyName to build db's index name Jinzhu 2018-02-02 22:01:31 +08:00
  • 35fbb1ba01
    Merge 884eee41282ff2633c87661ffd49af8f009614d5 into ca46ec0770003aab3c0ed7d7b336643362221c21 Ruslan 2018-02-02 10:34:57 +00:00
  • d42809302c
    remove sslmode=disable from postgresql Jonas Droste 2018-02-01 14:27:07 +01:00
  • 85f22393d9 Update CNAME Jinzhu 2018-02-01 12:02:57 +08:00
  • af6a26a9c2 Update CNAME Jinzhu 2018-02-01 11:54:20 +08:00
  • c40431c920 Create CNAME Jinzhu 2018-02-01 11:44:44 +08:00
  • ca46ec0770 Smaller image Jinzhu 2018-01-31 18:22:30 +08:00
  • cbc3d3cd50 Add go report card Jinzhu 2018-01-31 18:16:20 +08:00
  • 1856135e10 Merge branch 'WingGao-path1' Jinzhu 2018-01-31 17:14:33 +08:00
  • 630c12b549 Refactor #1693 Jinzhu 2018-01-31 17:14:21 +08:00
  • b9035a7602 Fix regex in BuildForeignKeyName #1681 (#1728) s-takehana 2018-01-31 17:32:36 +09:00
  • 62721e0dda add port in PostgreSQL connection example (#1652) PapEr 2018-01-31 17:09:24 +08:00
  • a2c7c4b63f UID should come before UI in common abbreviations (#1678) rightjoin 2018-01-31 14:38:03 +05:30
  • 04dd90a8da "if" in golang style (#1679) Sergey Lanzman 2018-01-31 11:06:57 +02:00
  • d2dfb7d0fb fix some typos in documents (#1680) DinoLai 2018-01-31 17:06:24 +08:00
  • 2ff44ee8d7 Fix regex in BuildForeignKeyName #1681 (#1728) s-takehana 2018-01-31 17:32:36 +09:00
  • 672c8c9448 Use brackets for quoting gm42 2018-01-22 17:52:47 +01:00
  • c2978c5545 Sort column names before generating SQL in DB.UpdateColumns Jess Smith 2018-01-21 20:07:04 -05:00
  • dfcfc9676b Fix regex in BuildForeignKeyName #1681 s-takehana 2018-01-16 20:46:04 +09:00
  • 26342ec75c Don't prepend override field name. Jason Chavannes 2018-01-16 09:11:11 -08:00
  • 9920924c46 Merge aefc97d8a9ebe5f10a3203d07cee463c9b73b88e into 0a51f6cdc55d1650d9ed3b4c13026cfa9133b01e esoftgolang 2018-01-15 10:00:09 +00:00
  • c1643f3933 Merge aefc97d8a9ebe5f10a3203d07cee463c9b73b88e into 0a51f6cdc55d1650d9ed3b4c13026cfa9133b01e esoftgolang 2018-01-15 09:55:37 +00:00
  • aefc97d8a9 add func to use in callbacks: NowFuncString() *string kmayer 2018-01-15 14:51:50 +05:00
  • 884eee4128 Implementatoin of possibility to reconnect Ruslan Fedoseenko 2018-01-13 15:18:25 +03:00
  • 3b41aa8f66 misc: correct composing sql replace "?" logic wmin0 2017-12-26 13:26:41 +08:00
  • 9fe3aeb2a8 misc: postgres compose sql var wmin0 2017-12-21 21:58:24 +08:00
  • f0ab6ac92a
    Allow name of column to be customized to support self-referencing many2many fields. Nathan Osman 2017-12-22 17:59:15 -08:00
  • b29018cc9c Added support for setting table-level unique constraints (not indexes) MOZGIII 2017-12-09 20:38:55 +03:00
  • 26262ef9bb autoIndex should throw an error on failed Wing Gao 2017-11-28 13:05:10 +08:00
  • 96d555850a autoIndex should throw an error on failed Wing Gao 2017-11-28 13:05:10 +08:00
  • 3087813925 Merge d630799e906b41467a47b801ec24b892e71a47e0 into 0a51f6cdc55d1650d9ed3b4c13026cfa9133b01e Ian Tan 2017-11-26 07:14:44 +00:00
  • d630799e90 Minor cleanup Ian Tan 2017-11-26 15:14:38 +08:00
  • 607e8f60e4 Support create and updates Ian Tan 2017-11-24 17:33:45 +08:00
  • 2368c373ae Support basic mock Create use cases Ian Tan 2017-11-24 15:32:43 +08:00
  • a4b79b5c8d Adding StringArray and RawMessage(JSONB) support to postgres dialect Rob Rodriguez 2017-11-23 14:50:44 -08:00
  • 4128722761 Automatically insert join table values for many_to_many mock queries Ian Tan 2017-11-23 18:39:06 +08:00
  • 5ef2153ab4 Support multiple preload Ian Tan 2017-11-23 17:28:10 +08:00
  • 505ecd17d3 Pass Stmt directly to SqlmockQuery Ian Tan 2017-11-23 17:27:59 +08:00
  • e89019d178 Remove unnecessary Set Ian Tan 2017-11-23 17:26:24 +08:00
  • 1a384b3c0c Use callbacks to record sql instead Ian Tan 2017-11-23 17:25:40 +08:00
  • 1f896a6e82 Do not call TableName function via interface{}. Masaki Yoshida 2017-11-22 11:25:55 +09:00
  • c2a28c63c3 Fix mock preload many2many generating empty relation rows Ian Tan 2017-11-22 20:53:49 +08:00
  • 8cf623a01f Minor clean up Ian Tan 2017-11-22 15:48:15 +08:00
  • a0b70669e7 Support mock has one Ian Tan 2017-11-22 15:44:06 +08:00
  • 8ae27d7ec7 Add partial support for many_to_many Ian Tan 2017-11-22 15:23:02 +08:00
  • d28ab5ae89 Add back AssertExpectations Ian Tan 2017-11-22 09:47:47 +08:00
  • 7aa08b9014 Refactor code for extracting has_many relations Ian Tan 2017-11-21 19:32:17 +08:00
  • b06542dc77 Support preloading Ian Tan 2017-11-21 19:02:54 +08:00
  • da8c7c1802 Add noop db driver Ian Tan 2017-11-21 17:10:10 +08:00
  • 486fb73ee5 Add documentation to prevent go lint from complaining Ian Tan 2017-11-21 12:26:18 +08:00
  • b7e50c2b34 fix misunderstanding DinoLai 2017-11-21 02:02:33 +08:00
  • e9a29091fa Clean up debug code Ian Tan 2017-11-20 18:41:06 +08:00
  • afe269ec7d Support slice value -> sql.Rows Ian Tan 2017-11-20 18:38:57 +08:00
  • b4591d4db8 Add naive get rows function Ian Tan 2017-11-20 16:04:38 +08:00
  • a4ba25028d Add Value() method to gorm_test.Num to prevent scan error Ian Tan 2017-11-20 16:02:40 +08:00
  • 2a5838f889 Add support to remove foreign key constraints Amit Yadav 2017-11-20 12:31:52 +05:30
  • 62740e8e1e Add docs Ian Tan 2017-11-20 10:25:12 +08:00
  • 9340b97a0b Utilize go1.8 context support in database/sql Reza Mohammadi 2017-04-08 21:02:53 +04:30
  • 8c06f3ff4f Fix variadic arguments Ian Tan 2017-11-18 21:23:55 +08:00
  • 6a1b81b18b Escape query string and assert err == nil Ian Tan 2017-11-18 19:24:45 +08:00
  • ae219db84b Add method to assert all expectations Ian Tan 2017-11-18 19:11:21 +08:00
  • 475ba3db3e Proof of concept using DB.logger Ian Tan 2017-11-18 19:06:00 +08:00
  • 5520530799 Fix some go lint errors Ian Tan 2017-11-18 16:37:14 +08:00
  • fcf4c8b569 fix markdown code highlight DinoLai 2017-11-17 23:30:16 +08:00
  • f6165b2dc2 fix typo in crud.md: add lost double quotation DinoLai 2017-11-17 23:19:33 +08:00
  • 90528be927 Implement private clone method to support fluent API Ian Tan 2017-11-17 18:29:31 +08:00
  • b9fc77cb77 Rename files Ian Tan 2017-11-17 17:24:57 +08:00
  • 5505f2ee76 Remove asserter interface Ian Tan 2017-11-17 17:24:35 +08:00
  • 27ec78afaa Remove Asserter interface and combine its functionality into Adapter Ian Tan 2017-11-17 17:20:42 +08:00
  • 71174be05a Rename TestHelper to Expecter and simplify factory function(s) Ian Tan 2017-11-17 17:19:49 +08:00
  • 36170724dd Refactor mock connection open/close logic Ian Tan 2017-11-17 12:29:06 +08:00
  • f5319a00fa Add NewDefaultTestHelper func Ian Tan 2017-11-17 12:10:24 +08:00
  • c3e927ba8b Reorganise code structure Ian Tan 2017-11-17 11:55:19 +08:00
  • eb418da347 Use github.com/jinzhu/gorm Ian Tan 2017-11-17 11:44:56 +08:00
  • 8909aa382b Add pgx dialect for github.com/jackc/pgx Tung Vu 2017-11-16 11:14:17 +07:00
  • 85b621bf4e Use same helper and mockDb Ian Tan 2017-11-16 18:54:14 +08:00
  • 7b6f227136 Add Close method to TestHelper Ian Tan 2017-11-16 18:53:54 +08:00
  • fb65f6708c Groundwork for TestHelper Ian Tan 2017-11-16 18:40:49 +08:00
  • 7dbde463ea fix typo in models.md DinoLai 2017-11-15 23:48:50 +08:00
  • 3586dc30c6
    "if" in golang style Sergey Lanzman 2017-11-14 14:36:53 +02:00
  • 9d0a8118cc
    UID should come before UI in common abbreviations rightjoin 2017-11-12 22:58:37 +05:30
  • c82c9b224f Tests for saving foreign key when save_associations:false Ezequiel Muns 2017-11-01 18:45:08 +01:00
  • 808e1b6853 fix var inkbx 2017-10-25 20:24:29 +08:00