Commit Graph

631 Commits

Author SHA1 Message Date
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
Honza Bittner 9b7e9533bd
Fix bitwiseAnd generated operation 2023-01-23 21:21:19 +01:00
Simon Binder 7bd2316605
Delete conflicting outputs when building docs 2023-01-23 15:39:25 +01:00
Simon Binder 2c63c1a64e
Update docs for Dart components in SQL
Scopes components are enabled by default, so the warning is no longer
necessary.
2023-01-22 22:53:45 +01:00
Simon Binder ac7aa48933
Fix typo in FAQ docs 2023-01-10 11:59:03 +01:00
Simon Binder ddb2b01b1c
Just reference the new package 2023-01-09 17:36:55 +01:00
Lungu Constantin fab7957b68
Update faq.md 2023-01-09 14:01:38 +02:00
Simon Binder d9072d7fac
Mention that casts work for drift types 2023-01-06 17:32:05 +01:00
Simon Binder bc325dd31c
Support cast to drift-specific types 2023-01-06 15:10:03 +01:00
Simon Binder 20e6b0d5fe
Fix crash, support type converters in views 2023-01-06 14:27:15 +01:00
Simon Binder e562cb9d21
Support type converters in queries 2023-01-05 23:04:36 +01:00
Simon Binder 810ecb169a
Merge pull request #2241 from North101/develop
Add toColumns mixin when using user generated classes
2022-12-31 14:40:52 +01:00
Simon Binder 104cb9be07
Document builder option 2022-12-31 14:16:09 +01:00
Simon Binder 6e173e8c08
Don't require tokens for some AST classes 2022-12-30 20:46:18 +01:00
Simon Binder 37101cf839
Add documentation and changelog 2022-12-27 22:26:31 +01:00
Simon Binder 5f8b1e3358
Recognize database files when dumping schema data 2022-12-15 16:47:44 +01:00
ValentinVignal 1e6a6cc666
🔥 Remove extra space 2022-12-03 16:19:02 +08:00
ValentinVignal 496635afb5
🚚 Rename column_name_case into case_from_dart_to_sql 2022-12-03 15:55:58 +08:00
ValentinVignal b08088ab1b
Merge remote-tracking branch 'upstream/develop' into column-name-case 2022-12-03 14:56:51 +08:00
Simon Binder 1a51dbf4d6
Static analysis support for custom functions 2022-12-02 23:34:42 +01:00
ValentinVignal 2a8e9d7af0
✏️ Fix typo for camelCase 2022-12-01 23:41:32 +08:00
ValentinVignal 0f8a6c0a1e
📝 Add column_name_case in the documentation 2022-12-01 23:27:03 +08:00
Simon Binder 8f98e14836
Add docs for drift files 2022-11-30 21:56:56 +01:00
ValentinVignal 3f0e40b8a7
📝 Update the documentation 2022-11-28 19:06:38 +08:00
Simon Binder 0a5014a7b4
Reformat sources 2022-11-25 18:00:09 +01:00
Simon Binder cd00c6899e
Add helper method to setup isolates more easily 2022-11-25 17:54:38 +01:00
Simon Binder 0231225733
Document modular generation 2022-11-25 17:13:34 +01:00
Simon Binder 097f941f88
Add single-client mode for remote connections 2022-11-25 13:47:08 +01:00
Simon Binder 1ed459c013
Fix wrong table reference in docs 2022-11-18 17:01:00 +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
Josiah Mendes 9c72d858ae
Fix runtime migration verification typo 2022-11-12 23:48:16 +08:00
Simon Binder dfa01c1332
Upgrading docs: Mention to re-generate schema files 2022-11-09 12:45:41 +01:00
Simon Binder ae87bb7373
Fix old conversion snippet on website 2022-11-07 17:39:00 +01:00
Simon Binder b776c672c2
Fix missing semicolon in drift docs (#2118) 2022-11-02 21:26:20 +01:00
Simon Binder cd9865f696
Simplify documentation setup 2022-10-25 22:15:09 +02:00
Simon Binder 51f4c28283
Document new type converters 2022-10-18 20:39:50 +02:00
Alexander Wilde ba28b51125 Decouple JsonTypeConverter from TypeConverter 2022-10-14 19:56:28 +01: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 6a810277d3
Link to example in isolate docs 2022-10-07 21:48:58 +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 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 02b7d30403
Document special syntax in create table statements 2022-09-20 21:48:23 +02:00
Fabian Freund cd89379627
Static analysis support for spellfix1 (#2013) 2022-09-16 16:02:39 +02:00
Simon Binder 8e9e7fc291
Use melos to manage packages (#2060) 2022-09-15 23:42:20 +02:00
Simon Binder 68552501cc
Document enum columns for drift files (#2045) 2022-09-13 10:58:03 +02:00
Ayumi Sashitani 16f586f444
Fix typo in upgrading documentation (#2037)
Co-authored-by: Ayumi Sashitani <sashiiii.dev@gmail.com>
2022-09-07 14:45:30 +02:00
Simon Binder eb7299c2d5
Stop mentioning `compact_query_methods` (#2036) 2022-09-05 13:54:47 +02:00
Simon Binder 80f8546122
Add tests for null sorting on asc/desc factories 2022-08-29 22:13:04 +02:00
Simon Binder c7a4a8cdec
Merge pull request #2023 from daniel-hopkins/patch-1
Update existing_databases.md
2022-08-27 23:33:53 +02:00
Simon Binder 3a4b3002d2
Format docs snippets 2022-08-27 21:44:42 +02:00
Simon Binder f0a58a6bd1
Improve clarity on getting started files (#2022) 2022-08-27 21:39:27 +02:00
daniel-hopkins c59c4eb574
Update existing_databases.md
the line `final file = File(p.join(dbFo …` needs `path/path.dart` imported as `p`
2022-08-27 14:28:16 -04:00
Simon Binder ca6758d8b1
Refresh documentation page on examples 2022-08-27 20:26:43 +02:00
Simon Binder 678893241e
Update docs on joins 2022-08-27 00:05:27 +02:00
Simon Binder 633b2ec359
Remove unused file, link to encryption sample 2022-08-25 21:20:31 +02:00
Simon Binder add52f2aaf
Add changelog entry and documentation 2022-08-24 09:23:31 +02:00
Simon Binder c44578da60
Update docs on encryption 2022-08-22 11:57:58 +02:00
Simon Binder 1db9173112
Format sources in documentation 2022-08-15 20:00:03 +02:00
Simon Binder 74ab9d4f80
Move snippet test to docs package 2022-08-15 19:55:06 +02:00
Simon Binder a89cef5262
Delete old moor packages 2022-08-14 22:57:37 +02:00
Simon Binder 7acb8407f0
Use pubspec_overrides for overrides 2022-08-14 17:21:22 +02:00
Simon Binder 8f6878292a
Migrate to `package:lints` 2022-08-13 23:33:05 +02:00
Simon Binder a4fe582f25
Collect documentation for 2.0 release 2022-08-13 14:18:17 +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 d5b8d5f1f6
Update docs license and home page 2022-08-07 17:13:59 +02:00
Simon Binder b6f6156407
Support datetime -> string serialization 2022-08-03 20:31:19 +02:00
Simon Binder bc61288bed
Support custom collations 2022-07-27 18:01:13 +02:00
Simon Binder d79c7e07ba
Lints for probable text datetime misuses 2022-07-25 20:58:39 +02:00
Simon Binder 1ff7ddbd82
Document dates as text on website 2022-07-25 15:26:16 +02: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 ef3ee418d4
Update docs on custom SQL 2022-07-16 11:51:21 +02:00
Simon Binder 1af6bb78d9
Start removing the SqlTypeSystem class 2022-07-12 17:04:01 +02:00
Simon Binder 7d940f8fd8
Fix more typos 2022-07-11 21:49:52 +02:00
Simon Binder d0e1d17ed0
Rename docs package to drift_docs 2022-07-10 18:02:26 +02:00
Simon Binder b537749f22
Use prepared snippets for isolates docs 2022-07-10 17:58:28 +02:00
Simon Binder 5332b8680b
Doc snippets: Link to relevant dartdoc page 2022-07-10 14:27:56 +02:00
Simon Binder 12b855af9a
Docs: Strip leading whitespace from snippets 2022-07-04 23:45:13 +02:00
Simon Binder 8a0610a827
Docs CI: Fix generating drift's API documentation 2022-07-04 20:21:20 +02:00
Simon Binder 116f98269d
Always enable the new SQL generation mode 2022-07-03 21:53:17 +02:00
Simon Binder c74f5d4cb4
Document nested transactions 2022-06-25 15:51:28 +02:00
Simon Binder 8a68527fee
Merge remote-tracking branch 'North101/develop' into develop 2022-06-23 21:01:07 +02:00
Simon Binder cf1e94d384
Automatically make some converters nullable 2022-06-23 20:56:56 +02:00
Alexander Wilde 345faa91c7 TypeConverter mapToDart -> fromSql, mapToSql -> toSql 2022-06-22 23:50:19 +01:00
Simon Binder 06af930941
Explicit null-aware types on type converters 2022-06-22 23:56:15 +02:00
cnmade 6583fa5ec8
Using read<int> instead readInt
by the document and api document, readInt may replace with read<int>?

`
Use read<int>(key) directly
`
2022-06-19 16:13:58 +08:00
Simon Binder 4af9aed190
Fix example for subquery expressions (#1892) 2022-06-17 17:53:56 +02:00
Simon Binder 5367072df5
Docs: List enums as column type 2022-06-16 18:29:13 +02:00
Simon Binder f510f3e5c3
Docs: Update built_site 2022-06-07 19:28:31 +02:00
Simon Binder a8d57515c3
Avoid overly careful runZoneGuarded 2022-06-07 14:48:32 +02:00
Simon Binder 5474ac22be
Also describe how to import backups 2022-05-28 13:57:56 +02:00
Simon Binder cbcde53da6
Docs: Describe how to export databases (#376) 2022-05-28 13:52:18 +02:00
Simon Binder a4dc3a3305
Clarify supported view columns 2022-05-23 21:38:23 +02:00
Remco Schrijver 1183bcabf3
Update index.md
Changed reference of moor to drift.
2022-05-21 23:04:36 +02:00
Simon Binder e5118c404f
Docs: Update dartdoc 2022-05-19 16:46:18 +02:00
Jishnu Mohan dc4e542f26
Support analyzer 4.x.x (#1841) 2022-05-18 12:39:46 +02:00
Simon Binder 15184110f4
Remove compatibility check 2022-05-16 15:59:11 +02:00
Simon Binder c25e8137bf
Document `BigInt` support on the website 2022-05-15 22:43:38 +02:00
Simon Binder 93a34b6969
Use dartdoc package in docs website 2022-05-13 11:58:27 +02:00
Simon Binder f971d4ce91
Update wasm snippet for docs 2022-05-04 20:46:09 +02:00
Simon Binder c5183deea6
better headline for dart table docs (#1827) 2022-04-30 23:17:55 +02:00
Simon Binder d23028a5bb
Docs: Fix group by Dartt examples 2022-04-25 10:49:11 +02:00
Josiah Mendes 0eec16327a
Fix Headings for database comparison in FAQ
Floor and Firebase were H2 headings when they should have been H3 to fall under "How does drift compare to X?"
2022-04-23 21:29:57 +01:00
Simon Binder e607ffe183
Document json type converters 2022-04-22 23:53:42 +02:00
Simon Binder 2473cea469
Add `check()` to the Dart column builder (#1594) 2022-04-18 20:09:02 +02:00
Simon Binder 6a47e32afc
Link new cross-platform example in docs 2022-04-08 21:16:46 +02:00
Simon Binder 5981d409c5
Merge pull request #1774 from westito/unique-constraint
Unique constraint DSL for Dart tables
2022-04-03 12:53:24 +02:00
Simon Binder fb7246654d
Web documentation for unique Dart columns 2022-04-03 12:44:02 +02:00
Michal Šrůtek 7884831809
Fix return type in upsert (#1787) 2022-04-03 12:02:13 +02:00
Simon Binder 9c31a17926
Add docs on `WasmDatabase` 2022-04-02 20:02:37 +02:00
Simon Binder 1a2406ddc1
Add new cross-platform Flutter example 2022-04-02 18:01:10 +02:00
Simon Binder 204fbad682
Move examples into top-level folder 2022-04-01 22:11:21 +02:00
Simon Binder 26c3dbfb48
Update docs on supported platforms 2022-04-01 22:02:38 +02:00
Simon Binder fcc7e42d23
Link to platforms page from getting started 2022-03-20 12:39:22 +01:00
Simon Binder c80d37e9d9
Add example to `drift_sqflite` 2022-03-14 21:26:20 +01:00
Simon Binder da212944ff
Replace old website and repository links 2022-03-13 15:52:15 +01:00
Simon Binder 64c50837f9
Note that native libs don't work in simple tests 2022-03-10 20:08:45 +01:00
YeungKC 79aedea60e
Determine schema version. (#1743)
Avoid an unnecessary write to the database when no migration is needed.
2022-03-10 14:36:02 +01:00
Simon Binder 5df272e655
Clarify docs on `recreateAllViews` 2022-03-07 10:36:27 +01:00
Simon Binder 61dc1f17b8
Name schema exports automatically (#1721) 2022-03-02 17:25:30 +01:00
Simon Binder a463476c44
docs: Fix generating build script 2022-03-01 22:08:40 +01:00
Simon Binder db954b08cd
docs: Use highlight files in more places 2022-03-01 21:37:38 +01:00
Simon Binder 137a7b00a0
Merge branch 'documentation-snippets' into develop 2022-03-01 20:43:20 +01:00
Simon Binder db1a4e2827
Fix `validateDatabaseSchema` 2022-03-01 20:41:00 +01:00
Simon Binder cb46e2c07e
API to validate schema at runtime (#1718) 2022-03-01 18:10:19 +01:00
Simon Binder 536d510825
Update many-to-many example 2022-02-21 20:41:47 +01:00
Simon Binder d1d7900cd8
Fix docs build script 2022-02-14 22:52:37 +01:00
Simon Binder de6a083c69
Fix typo in routeWithPoints example 2022-02-14 22:17:03 +01:00
Simon Binder 48041512cb
Use sqlparser for drift snippets 2022-02-14 22:13:00 +01:00
Simon Binder 99172c1216
Extract snippets for documentation
This makes it easier to test the validity of snippets
2022-02-13 16:55:57 +01:00
Simon Binder 5e06f8dfa0
Merge pull request #1675 from saliouseck2009/patch-1
change name of the update method to avoid confusion
2022-02-12 00:03:36 +01:00
Simon Binder 1bfc410788
Docs: Suggest editing state from `develop` 2022-02-11 23:13:48 +01:00
ckroot b9070ef6a2
change name of the update method
The name of the method update in line 140 Cause exceptions for the methods `moveImportantTasksIntoCategory` and `update` method itself .
The problem is when these two methods try to call the native update method on `package:drift/src/runtime/api/runtime_api.dart` the program use the update method define in this page and trigger exceptions . It takes me lots of time .
2022-02-11 13:04:02 +00:00
Simon Binder fca9db2052
Back to `dartdoc` due to missing options 2022-02-09 16:43:39 +01:00
Simon Binder 51f61a884f
Suggest using transactions in migrations 2022-02-09 16:24:07 +01:00
Simon Binder 2486e66e05
Fix docs build, retire master branch 2022-02-09 16:08:08 +01:00
Mathieu Pierfitte b829e70507
Improve migration guidelines 2022-02-09 14:15:01 +01:00
Mathieu Pierfitte 6113bb3dc8
Improve migration guidelines 2022-02-09 14:13:45 +01:00
Mathieu Pierfitte 1ced978f86
Improve migration guidelines
The migration docs using `if (from == 1)` mislead me to think skipping version would still run intermediate migrations. However, if a user goes straight from v1 to v3, the migration process won't be 1 -> 2 + 2 -> 3, but 1 -> 3 directly, thus the code in `if (from == 2)` will never run, skipping a necessary migration.

I think the proposed change might prevent others from doing the same mistake as I did.
2022-02-09 12:13:37 +01:00
Simon Binder df89513130
Document list subqueries, add test 2022-02-05 20:01:58 +01:00
Simon Binder a102323857
Give proper credits for `storage_inspector` :) 2022-02-02 21:04:03 +01:00
Simon Binder 64fde620f4
Update storage_inspector in community tools 2022-02-02 17:19:59 +01:00
Simon Binder 2ef2d660fc
Mention that batches are using transactions more 2022-02-02 10:12:25 +01:00
Simon Binder 3f165c2df7
Update community tools 2022-01-26 15:42:49 +01:00
Michael Thomsen cdde1e57f3
Update index.md 2022-01-25 14:38:30 +01:00
Simon Binder 6d89a7711b
Recommend using isolates in docs 2022-01-24 13:26:46 +01:00
Simon Binder a16b7d3d3f
Remove outdated warning about queries in migration 2022-01-23 17:56:19 +01:00
Simon Binder ab3db154e3
Upgrade built_site and docsy 2022-01-22 21:06:26 +01:00
Simon Binder 75463f8819
Remove references to the beta branch 2022-01-19 18:25:31 +01:00
Simon Binder 0563a7fa15
Fix link check, again 2022-01-07 23:06:23 +01:00
Simon Binder 6b6663c690
Disable checking external links 2022-01-05 19:04:14 +01:00
Simon Binder 573bd20eb8
Fix missing quotes in drift files docs 2022-01-05 18:52:35 +01:00
Simon Binder c8f8e025c4
Merge branch 'develop' 2021-12-30 19:27:36 +01:00
juliangeissler b1979e35ed
Fix Typo 2021-12-27 18:15:58 +01:00
Simon Binder 0a2cc40ba5
Print more logs when a link check fails 2021-12-26 00:20:34 +01:00
Simon Binder 286612db6d
Merge remote-tracking branch 'origin/master' into develop 2021-12-23 17:47:04 +01:00
Simon Binder 768764f005
Use Dart-based linkcheck 2021-12-21 19:54:54 +01:00
Simon Binder 2ecc44c593
Fix unintentional rename in docs 2021-12-21 19:23:38 +01:00
Pataridze Givi af945cf0f6
Update builder_options.md
`dialect` displacement fix
2021-12-20 18:40:28 +04:00
Simon Binder c4e2600944
Merge branch 'master' into develop 2021-12-11 13:21:49 +01:00
Simon Binder 523ae98b40
Add Flutter favorite icon to website 2021-12-09 00:21:57 +01:00
Simon Binder 5fcdbed46f
Add docs 2021-12-01 17:05:58 +01:00
Simon Binder 45a64f7f08
Document build option 2021-11-25 21:33:35 +01:00
Nicola Verbeeck 39b4745b7d
Update community_tools.md (#1557)
Updated viewer and inspector packages to include drift specific versions
2021-11-23 19:45:46 +01:00
Munjata KEITA 1eb36eaaea
Convert ByteData before writing into file (#1555)
ByteData can not be written directly into file using writeAsBytes method.
It must be converted to Uint8List before the operation.
2021-11-21 23:24:32 +01:00
westito fad654a5aa
PostgreSQL support (#1507)
Support PostgreSQL as a dialect in the main package and with an implementation provided in another package.

Co-authored-by: Simon Binder <oss@simonbinder.eu>
2021-11-11 14:40:41 +01:00
Simon Binder 594b5f43c5
Explain that channels need to be initialized 2021-10-30 17:04:24 +02:00
Simon Binder 23c912d6aa
Explain usages of .memory() in docs 2021-10-30 16:29:37 +02:00
westito f78c251f3f
Add Flutter web worker example (#1512) 2021-10-27 21:25:32 +02:00
lsaudon f72e63c776 Fix naming
Put the same term everywhere, in accordance with the "Setup" part.
2021-10-27 12:30:10 +02:00
Simon Binder 27e103aa01
Merge branch 'develop' 2021-10-14 11:24:55 +02:00
Simon Binder 219fbee99f
Replace mentions of VmDatabase in docs 2021-10-14 11:16:55 +02:00
Simon Binder 7d5273bd8f
Merge branch 'develop' 2021-10-13 22:52:49 +02:00
Simon Binder 410ff6f6e3
Document incompatibility around the encrypted variant 2021-10-13 22:45:48 +02:00
Simon Binder fa8f30d427
Merge branch 'develop' 2021-10-12 17:12:49 +02:00
Ascênio Sanderson b787281865 docs: fix typos 2021-10-12 11:14:01 -03:00
Simon Binder f1f044d171
Fix typo in prod build config 2021-10-12 15:17:40 +02:00
Simon Binder 61d0d17f26
Fix building the documentation 2021-10-12 15:14:12 +02:00
Simon Binder 6b030036d4
Deprecate top-level members in moor package 2021-10-12 14:45:19 +02:00
Simon Binder 7d41e42c78
Prepare moor 4.6.0 release 2021-10-12 14:26:53 +02:00
Simon Binder 3cc17b0a45
Merge branch 'master' into develop 2021-10-11 15:57:42 +02:00
Simon Binder 950f93a1f8
Build drift dartdoc for website 2021-10-11 14:50:16 +02:00
Simon Binder 8161c4a1e8
Add rename hint to all doc pages 2021-10-10 20:07:14 +02:00
Simon Binder 3157d687e5
Migrate rest of documentation to drift 2021-10-10 16:01:50 +02:00
Simon Binder e91207e9e4
Start preparing the documentation for the new name 2021-10-09 21:43:30 +02:00
Simon Binder a3455bda69
Briefly explain MoorIsolates across engines 2021-10-05 20:20:13 +02:00
Simon Binder 24597a3bfd
Fix typo in web documentation 2021-09-29 17:32:38 +02:00
Simon Binder 8c933ba2f2
Update docs on code sharing between native/web 2021-09-28 22:31:33 +02:00
maxstubbersfield 643eeba67e
Minor typo in FAQ 2021-08-30 12:31:06 +02:00
Abdelrahman Mostafa Elmarakby 1df7056a07
Update docs/pages/docs/Examples/index.md
Co-authored-by: Simon Binder <oss@simonbinder.eu>
2021-08-22 21:47:11 +02:00
Abdelrahman Mostafa Elmarakby 595c791915
another example but with animation added 2021-08-22 14:08:16 +02:00
Simon Binder 641ef73d83
Deploy to branch name 2021-08-21 21:25:00 +02:00
Simon Binder 5352842bec
Use custom dartdoc in compilation pipeline 2021-08-21 21:10:30 +02:00
Simon Binder 473ffaa1a4
Use working built_site version 2021-08-20 19:37:18 +02:00
Simon Binder 10bb3ce647
Fix deployment builds 2021-08-20 19:20:42 +02:00