Commit Graph

23 Commits

Author SHA1 Message Date
Ariel Mashraki
dab95be855 doc/md: example and test for migration apply hooks (#2514) 2022-05-02 14:25:22 +03:00
MasseElch
4db0c544c2 dialect/sql: add New method to pass in a river without opening a *sql.DB before (#2504) 2022-04-28 13:12:34 +02:00
Ariel Mashraki
89c339209e entc/gen: add the sql/execquery feature flag (#2447) 2022-04-06 13:34:22 +03:00
Ariel Mashraki
899e9f0e50 dialect/sql: wraps the sql.Rows with ColumnScanner interface 2021-10-14 09:32:30 +03:00
Ruben de Vries
1586d50f94 dialect/sql: do not call inner Scan for nil values in sql.NullScanner (#1771) 2021-07-27 12:05:22 +03:00
Ariel Mashraki
2480b5c0ef entc/gen: wrap nillable fields with custom go-type with sql.nullscanner 2021-04-17 13:13:40 +03:00
Ariel Mashraki
dd4792f5b3 go: rename module from github.com/facebook/ent => entgo.io/ent (#1226) 2021-02-02 23:03:04 +02:00
Alex Snast
bd4d2a553c dialect/sql: export conn type (#767) 2020-09-15 16:17:43 +03:00
Ariel Mashraki
4cdfc7b57e integration: test json predicates in ci (#724) 2020-09-03 11:15:31 +03:00
Ariel Mashraki
fd0a7f9f02 all: facebookincubator/ent => facebook/ent (#660)
ent repository is going to be migrated to facebook organization
2020-08-18 11:05:08 +03:00
Ariel Mashraki
3fa749d9e3 dialect/sql: remove go1.12 support (#457) 2020-04-30 13:21:00 +03:00
Ariel Mashraki
6819c01906 dialect/sql: allow nil values for exec commands (#313)
In most cases, the sql.Result is not needed.
2020-01-22 22:43:45 +02:00
Ariel Mashraki
be307dab3c dialect/sql: type alias txoptions
Reviewed By: alexsn

Differential Revision: D18689199

fbshipit-source-id: 7606a3a24beb286d464b64eb2e51a1257fbffdcd
2019-11-25 10:13:59 -08:00
Ariel Mashraki
1bf83dd65f dialect/sql: add BeginTx for sql driver
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/193

Reviewed By: dlvhdr

Differential Revision: D18685934

fbshipit-source-id: abc4bf0b14ece3827bc20ecb864e7ca0594c2759
2019-11-25 07:29:52 -08:00
Ariel Mashraki
d31f0828f0 dialect/sql: replace nulltime with official implementation on 1.13 and higher
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/169

Reviewed By: alexsn

Differential Revision: D18561431

fbshipit-source-id: d21335c073e0abed99d97c85c03cfa17c8326fef
2019-11-17 09:06:58 -08:00
Ariel Mashraki
bd07c86b60 all: add license header to all go files
Summary:
Used addlicense to generate this:
 addlicense -c "Facebook Inc" -f license_header .

example was taken from: https://github.com/facebook/litho/blob/master/lib/soloader/BUCK

Reviewed By: alexsn

Differential Revision: D17070152

fbshipit-source-id: e7b91398d7f6181727be3400c1872ad5f28e38ed
2019-08-27 04:48:28 -07:00
Ariel Mashraki
e0e754717e ent: change ent package name (#1338)
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1338

Pull Request resolved: https://github.com/facebookincubator/ent/pull/14

Reviewed By: alexsn

Differential Revision: D16890825

fbshipit-source-id: 656baaa73f5debab08c849b6b9639caeec2a8ef1
2019-08-19 09:32:14 -07:00
Alex Snast
71725de3d7 implement graph database migrate command
Summary: Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1281

Reviewed By: a8m

Differential Revision: D16757606

fbshipit-source-id: 89ad3cdf7b9a7c9931ac8e2b20f127a1cc125d62
2019-08-11 08:32:44 -07:00
Ariel Mashraki
c4f13adea3 sql driver should not be opinionated about b configuration
Reviewed By: elys1um

Differential Revision: D16088072

fbshipit-source-id: ec50191ea3f159569d97b714863333795e96d57a
2019-07-02 01:21:12 -07:00
Alex Snast
6c2813b7b5 correctly emit sql db stats
Reviewed By: a8m

Differential Revision: D15984447

fbshipit-source-id: b762fdd2507b3b51630f10a2e14812dd3d028029
2019-06-25 04:57:38 -07:00
Ariel Mashraki
84be4c5653 mysql configuration for logging and conntimeout
Reviewed By: alexsn

Differential Revision: D15973145

fbshipit-source-id: c8baa475318dff7c80aacee4c9f90651084e20e8
2019-06-25 02:16:46 -07:00
Ariel Mashraki
5ca9494121 enable sql dialect option on integration env (#1014)
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1014

Pull Request resolved: https://github.com/facebookincubator/ent/pull/6

Reviewed By: alexsn

Differential Revision: D15928002

fbshipit-source-id: 4b5a639405f218f6b6cc90d152380d2fc9525a3f
2019-06-21 05:15:52 -07:00
facebook-github-bot
267e3c15bd Initial commit
fbshipit-source-id: c79a38536e3c128dce1b2948615b72ec9779ed22
2019-06-16 04:37:51 -07:00