Simon Binder
342027b420
Update to stable sqlite3 package
2023-06-17 22:19:31 +02:00
Simon Binder
0bf6d0c384
Update web docs
2023-06-17 22:14:59 +02:00
Simon Binder
b01c8494e5
Rename old web test package
2023-06-10 18:01:25 +02:00
Simon Binder
61c641001a
Allow latest sqlite3 in encryption sample
2023-06-04 22:11:56 +02:00
Simon Binder
9f2405be26
Merge branch 'develop' into web-v2
2023-06-04 22:10:44 +02:00
Simon Binder
ba9360f063
Fix dependency conflicts in some examples
2023-06-01 11:23:57 +02:00
Simon Binder
ec5927bc2a
Add web compatibility information to web page
2023-05-31 23:48:13 +02:00
Simon Binder
ff41de2a6b
Get new wasm implementation working in Chrome
2023-05-31 22:48:29 +02:00
Simon Binder
2fb7300ad2
Fix web worker example
2023-05-15 21:28:19 +02:00
Simon Binder
8498cfb8d9
Fix build in app example
2023-05-15 09:12:59 +02:00
Simon Binder
28417c52af
Fix lints and warnings added in Dart 3.0
2023-05-12 22:42:21 +02:00
Eli Geller
54f6eea205
small typo fixes ( #2410 )
...
Co-authored-by: Eli Geller <eli@reportallusa.com>
2023-05-05 16:10:52 +02:00
Simon Binder
b4b4e350dd
Simplify creation of web workers for drift
2023-04-10 23:01:30 +02:00
Simon Binder
a6549425ef
Serialize and restore file dependencies too
2023-03-25 16:29:07 +01:00
Simon Binder
d6e074e704
Fix `validateDatabaseSchema` in schema tests
2023-03-23 17:56:50 +01:00
Simon Binder
e91df496c8
Update dependencies for app example
2023-03-05 22:15:16 +01:00
Simon Binder
adc2e22c46
Ignore lints in generated schema code
2023-03-03 20:57:32 +01:00
Simon Binder
5166e5d294
Add rowid parameter to companions
2023-02-19 13:46:58 +01:00
Simon Binder
21ff422f19
Support `@create` queries in modular mode ( #2313 )
2023-02-12 12:44:47 +01:00
Simon Binder
d30d2a1212
Add backup/restore functionality to example app
2023-02-08 00:35:55 +01:00
Simon Binder
cd2cf1f3b3
Fix blob columns with modular code generation ( #2306 )
2023-02-07 22:27:53 +01:00
Simon Binder
28f31d183e
Remove connect constructor in migration example
2023-01-28 19:33:34 +01:00
Simon Binder
0d354b3bec
Deprecate special connect constructor
2023-01-28 16:53:35 +01:00
Simon Binder
83fad8426e
Make `generate_connect_constructor` the default
2023-01-28 16:14:27 +01:00
Simon Binder
592a96bf7e
Remove default options from app example
2023-01-27 16:45:00 +01:00
Simon Binder
b1f2ea45d5
FIx recent deprecation warnings
2023-01-26 16:56:16 +01:00
Simon Binder
6b4a186b15
Fix extending classes in modular mode ( #2260 )
2023-01-10 12:26:14 +01:00
Alexander Wilde
91495e6f8d
Rebuild
2022-12-31 03:33:54 +00:00
Simon Binder
1d8fa16e2c
Enable legacy alter table in alterTable
2022-12-23 13:42:01 +01:00
Alexander Wilde
32c34b511a
Fix DriftSqlType.deserialize for double, dateTime and any
2022-12-22 02:08:04 +00:00
Simon Binder
18c6139eb3
Exchange dialect information for remote database
2022-12-18 22:02:49 +01:00
Simon Binder
e2265eb597
Add `DriftAny` type to wrap `ANY` in strit tables
2022-12-18 18:55:17 +01:00
Simon Binder
b520568984
Ignore internal tables when reading schema from db
2022-12-18 15:26:40 +01:00
Simon Binder
657b68ab76
Extract custom Dart table constraints into schema
2022-12-16 15:34:07 +01:00
Simon Binder
add680b8bf
Move `SchemaInstantiationHelper` to drift package
2022-12-16 14:09:54 +01:00
Simon Binder
00dbc2f886
Avoid nested codes, add tests
2022-12-13 21:53:17 +01:00
Simon Binder
16e6aaf4fe
Use extension for all tables in modular generation
2022-12-12 23:50:11 +01:00
Simon Binder
1c06873403
Fix reading triggers in old schema files ( #2191 )
2022-12-10 22:57:45 +01:00
Simon Binder
c0c1810bcf
Don't generate empty drift accessors
2022-12-07 10:55:20 +01:00
Simon Binder
a637708591
Generate getters for DAO as well
2022-12-06 22:10:21 +01:00
Simon Binder
5a8dd923d6
Add more examples to modular project
2022-12-06 21:19:20 +01:00
Alexander Wilde
ec01ad275a
Various fixes for modular code gen
2022-12-05 17:16:06 +00:00
Simon Binder
c0d5188c18
Fix generating modular type converter code ( #2183 )
2022-12-04 19:14:24 +01:00
Simon Binder
387a21c580
Relax constraints on element order in drift files
2022-12-03 00:06:05 +01:00
Alexander Wilde
5a6f402d86
Run build
2022-12-01 04:43:27 +00:00
ValentinVignal
99affe3fac
🐛 Use correct type for enum converter
2022-11-30 23:53:46 +08:00
Simon Binder
d24644113a
Fix generating schema test code
2022-11-28 21:59:17 +01:00
Simon Binder
cd00c6899e
Add helper method to setup isolates more easily
2022-11-25 17:54:38 +01:00
Simon Binder
15edd501aa
Support generating database accessors in modular mode
2022-11-25 14:49:14 +01:00
Simon Binder
097f941f88
Add single-client mode for remote connections
2022-11-25 13:47:08 +01:00
Simon Binder
fde7adde48
Support triggers and indices in modular generation
2022-11-22 20:06:16 +01:00
Simon Binder
f4e45584ec
Begin optional modular code generation
2022-11-20 17:28:27 +01:00
Simon Binder
6512dc1cfc
Merge remote-tracking branch 'origin/develop' into modular-generation
2022-11-18 16:56:55 +01:00
Simon Binder
596a35b58e
Document basic analysis concept
2022-11-18 16:33:19 +01:00
Simon Binder
b2bbcfae8a
Add `shutdownOnClose` to `connect()`
...
When only a single client connects to a drift server, the whole server
can be disposed when that client disconnects. This makes it easier to
clean up resources in the common case of having one client.
Closes #2157
2022-11-15 11:00:52 +01:00
Simon Binder
ea6a8a2217
Re-generate migration tests
2022-11-11 17:50:21 +01:00
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
3ec04df46f
Run melos run build
2022-10-29 14:36:50 +02:00
Roman Laptev
b2796fc77e
[drift_dev] Update analyzer and deprecated methods ( #2084 )
2022-09-27 21:30:12 +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
8e9e7fc291
Use melos to manage packages ( #2060 )
2022-09-15 23:42:20 +02:00
Simon Binder
04c3dbf1b5
Fix triggers in example app
2022-08-31 11:58:25 +02:00
Simon Binder
76a8a6d35d
Remove unintended override in encryption app
2022-08-25 21:21:21 +02:00
Simon Binder
633b2ec359
Remove unused file, link to encryption sample
2022-08-25 21:20:31 +02:00
Simon Binder
053206806f
Add encryption example
2022-08-25 21:17:08 +02:00
Shun Min Chang
8fafb94853
Fix the wrong version number on `migration_test`
2022-08-17 16:34:20 +08:00
Simon Binder
9011137c8e
Fix migration code for virtual tables ( #1988 )
2022-08-14 15:01:21 +02:00
Simon Binder
8f6878292a
Migrate to `package:lints`
2022-08-13 23:33:05 +02:00
Simon Binder
83c7c1ab43
Remove deprecated options, re-run build
2022-08-13 15:14:09 +02:00
Simon Binder
b9a605ed25
Allow async mappings from SQL to row classes
...
When existing, custom row classes are used, drift now supports using a
(potentially asynchronous) static method to load them instead of just
a named constructor like before.
Tables are also changed to support the `map` method being async for
cases where that is needed. The same applies to custom queries which
may have to be async now.
2022-08-12 22:55:02 +02:00
Simon Binder
ffeb3ef045
Add foreign key example to migration test
2022-08-10 13:50:00 +02:00
westito
e65c4d15d0
Regenerate database files
2022-08-08 11:30:47 +02:00
Simon Binder
cf95ed6f05
Re-generate migration tests in app example
2022-07-29 18:54:41 +02:00
Simon Binder
0cb3527680
Schema tool: Store whether dates are text
2022-07-26 19:18:17 +02:00
Alexander Wilde
8fe2f24e56
Run tools/generate_all.sh
2022-07-21 18:00:03 +01:00
Simon Binder
3744fa0601
Merge branch 'develop' into refactor-type-system
2022-07-20 22:37:34 +02:00
Simon Binder
a8c6031fc4
Add documentation comments, fix analysis warnings
2022-07-19 23:01:22 +02:00
Simon Binder
22d5f0a8ae
Fix tests
2022-07-19 22:55:08 +02:00
Simon Binder
cf8d2618fa
First attempt to get it running again
2022-07-18 23:28:12 +02:00
Simon Binder
a3109b4a6b
Fix query in example app
2022-07-12 17:52:04 +02:00
Simon Binder
116f98269d
Always enable the new SQL generation mode
2022-07-03 21:53:17 +02:00
Simon Binder
2cd77ad8a2
Merge pull request #1916 from simolus3/change-integration-tests-dialect
...
Change integration tests dialect
2022-07-02 18:11:50 +02:00
westito
27f1305844
Update ios, macos projects
2022-07-02 08:31:17 +02:00
westito
5c4e5e571e
Revert dialect changes
2022-07-02 08:30:29 +02:00
Simon Binder
a064bb719d
Migrate remaining examples to null-safety
2022-07-01 21:51:33 +02:00
westito
02ad0e8250
Change integration tests' dialect to postgres
2022-06-30 19:04:55 +02:00
Simon Binder
c5c67e15a1
Color is non-nullable again now
2022-06-28 23:07:34 +02:00
Simon Binder
1b06fcfc77
Merge branch 'develop' into fix-tests
2022-06-28 23:05:22 +02:00
Simon Binder
bfad77788e
Handle nullable converters for compiled queries
2022-06-28 22:34:11 +02:00
Simon Binder
4fae017d36
Fix build config for web worker example
2022-06-28 14:47:32 +02:00
westito
292da80167
Regenerate all files
2022-06-28 13:24:57 +02:00
westito
769de1dfe2
Fix web_worker_example build fail
2022-06-28 08:58:24 +02:00
Alexander Wilde
345faa91c7
TypeConverter mapToDart -> fromSql, mapToSql -> toSql
2022-06-22 23:50:19 +01:00
Simon Binder
429d36ff9c
Example app: Add explanatory comment to copy builder
2022-06-03 23:18:23 +02:00
Simon Binder
a604eeddaf
Remove js dep override override in example app
2022-05-29 20:07:41 +02:00
Simon Binder
9e2e9c47be
Upgrade to latest `sqlite3` package in example app
2022-05-04 20:41:15 +02:00
Simon Binder
80c8c86031
Support drift-defined views schema tools ( #1813 )
2022-04-23 23:31:04 +02:00
Simon Binder
6a47e32afc
Link new cross-platform example in docs
2022-04-08 21:16:46 +02:00