Simon Binder
d491db8599
Move dialect to SqlTypes constructor, re-generate
2022-11-07 15:53:16 +01:00
Abitofevrything
54b58948d3
Run melos run build
2022-11-05 20:35:24 +01:00
Abitofevrything
658bd5d646
Update test case
2022-11-05 20:35:02 +01:00
Abitofevrything
cb1389f272
Extract generated code to method
2022-11-05 20:34:55 +01:00
Abitofevrything
897f8c10ad
Remove unneeded parameter
2022-10-29 18:09:23 +02:00
Abitofevrything
7ad933eccd
Add tests for postgres boolean type
2022-10-29 17:00:26 +02:00
Abitofevrything
d817163681
Add support for boolean sql type
2022-10-29 16:40:15 +02:00
Abitofevrything
2106b7010b
Pass dialect to SqlTypes methods
2022-10-29 16:36:04 +02:00
Abitofevrything
fbff2ceccd
Use postgresql boolean type for bool columns
2022-10-29 15:48:45 +02:00
Abitofevrything
3ec04df46f
Run melos run build
2022-10-29 14:36:50 +02:00
Abitofevrything
52b885c007
Don't export customConstraints in schema file is constraints are empty
2022-10-29 14:22:22 +02:00
Abitofevrything
52d2d908c0
Don't generate empty constraints
2022-10-29 13:37:38 +02:00
Abitofevrything
aefc887c77
Correctly call defaultConstraints
2022-10-29 13:17:27 +02:00
Abitofevrything
c8d63b845d
Generate dialect-specific constraints
2022-10-29 13:16:21 +02:00
Abitofevrything
fa512a5901
Change defaultConstraints to be a callback
2022-10-29 12:44:39 +02:00
Simon Binder
fdd1d2c66e
Fix deprecation warnings from analyzer upgrade
2022-10-29 12:17:07 +02:00
Simon Binder
cbca76e7e1
Update drift dependency for drift_postgres
...
Closes #2114
2022-10-29 12:03:52 +02:00
Simon Binder
cd9865f696
Simplify documentation setup
2022-10-25 22:15:09 +02:00
Simon Binder
eb840db4be
Merge pull request #2102 from North101/develop
...
Decouple JsonTypeConverter from TypeConverter
2022-10-18 20:45:33 +02:00
Simon Binder
51f4c28283
Document new type converters
2022-10-18 20:39:50 +02:00
Simon Binder
92bb5a7fa1
Add test and changelog
2022-10-18 20:36:09 +02:00
Alexander Wilde
09951adda6
JsonTypeConverterWithDifferentTypes -> JsonTypeConverter2
2022-10-18 01:06:22 +01:00
Alexander Wilde
ff9d419559
Backwards compatible attempt
2022-10-16 00:44:58 +01:00
Alexander Wilde
ba28b51125
Decouple JsonTypeConverter from TypeConverter
2022-10-14 19:56:28 +01:00
Simon Binder
3253cd7ead
Merge pull request #2098 from isaacadariku/patch-1
...
Update web.md
2022-10-12 14:48:15 +02:00
Isaac Adeni Adariku
a0f3f3d801
Update web.md
...
Following this depreciated change [1af6bb78d9
#:~:text=%40Deprecated(%27Use%20the,this(executor)%3B], the documentation for the web.md needs to be updated. This PR updates the documentation to reflect the changes.
2022-10-11 12:14:52 +01:00
Simon Binder
3d969c787f
Infer generated columns for drift
2022-10-10 23:18:10 +02:00
Simon Binder
661d1448eb
Docs: Also get dependencies in drift
2022-10-09 21:41:10 +02:00
Simon Binder
6a810277d3
Link to example in isolate docs
2022-10-07 21:48:58 +02:00
Simon Binder
808f582b08
Release sqlparser and drift_dev
2022-10-06 22:56:25 +02:00
Simon Binder
a2e10d9abc
Prepare 2.2.0 release
2022-10-06 13:27:25 +02:00
Simon Binder
ee8499a6dd
Format sources in documentation
2022-10-05 11:34:28 +02:00
Simon Binder
becae40c6e
Add bitwise operators to query builder
2022-10-05 11:31:45 +02:00
Simon Binder
a039de0d3a
Move operator expressions out of megalib
2022-10-04 15:08:57 +02:00
Simon Binder
4136acb465
Merge pull request #2086 from ValentinVignal/drift/make-insertable-a-const
...
Add `const` constructor to `Insertable`
2022-09-30 09:10:48 +02:00
ValentinVignal
7f78ab4642
⚡ Add const keywords
2022-09-30 14:11:34 +08:00
ValentinVignal
0a7b32f92e
🚚 Move test to drift/test/database/data_class_test.dart
2022-09-30 14:11:25 +08:00
ValentinVignal
776b75a033
✅ Add a test using a const insertable
2022-09-30 11:59:11 +08:00
ValentinVignal
e98a002a15
⚡ Add a const constructor to insertable
2022-09-30 11:58:53 +08:00
Brett Lindsay
6337d8e74f
Fix typo in error message for references ( #2085 )
2022-09-28 22:26:51 +02:00
Roman Laptev
b2796fc77e
[drift_dev] Update analyzer and deprecated methods ( #2084 )
2022-09-27 21:30:12 +02:00
Simon Binder
ccea98e4a2
Document using existing row classes for views
2022-09-24 22:00:30 +02:00
Elmarakbeno
226aead4c0
Add getx example to FAQ ( #2077 )
2022-09-24 08:06:49 +02:00
Elmarakbeno
31d7faa927
Link example with GetX on community page ( #2076 )
2022-09-24 07:56:27 +02:00
Simon Binder
8c1a62ae1b
Serialize and read uniqueKeys from schema ( #2069 )
2022-09-22 17:47:06 +02:00
Simon Binder
28c90b6ffb
Always escape column names
...
This avoids the performance impact of using a regex in `escapeIfNeeded`.
Closes #2071 .
2022-09-22 16:55:36 +02:00
Simon Binder
be61af5111
Add script to build a local sqlite3 library
...
This local library is then used in drift tests by default, making it
easier to run drift unit tests against the expected sqlite3 version.
2022-09-22 01:33:40 +02:00
Simon Binder
8a8d1fce80
Skip more datetime tests on older sqlite3 versions
2022-09-21 23:40:10 +02:00
Simon Binder
02b7d30403
Document special syntax in create table statements
2022-09-20 21:48:23 +02:00
Simon Binder
0fb9ba0a5c
Skip variable tests for postgres
2022-09-19 23:05:03 +02:00