Commit Graph

2606 Commits

Author SHA1 Message Date
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
Simon Binder 944725dafb
Generate null variables 2022-09-19 22:43:16 +02:00
Fabian Freund cd89379627
Static analysis support for spellfix1 (#2013) 2022-09-16 16:02:39 +02:00
Simon Binder 87c58d0685
Cache dependencies, merge docs run into main CI 2022-09-16 01:14:51 +02:00
Simon Binder 8e9e7fc291
Use melos to manage packages (#2060) 2022-09-15 23:42:20 +02:00
Simon Binder 24316c80a6
Remove unecessary schema_version assignment 2022-09-13 22:01:00 +02:00
Simon Binder 68552501cc
Document enum columns for drift files (#2045) 2022-09-13 10:58:03 +02:00
Simon Binder 4da647e8a3
Ignore android_metadata table in schema comparison 2022-09-13 10:38:46 +02:00
Daniel Brauner 025bb7c44b
Generated functions for returning queries return Iterable<_> instead of List<_> (#2044)
* fix for missing toList

* removed unnecessary toList
2022-09-12 19:05:45 +02:00
Simon Binder 1681c83bea
Fix null analysis for Dart views (#2031) 2022-09-08 23:06:00 +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 161b99d8d5
Re-enable `public_member_api_docs` lint 2022-09-01 18:57:36 +02:00
Simon Binder 009056dc37
Handle equality and hashes for blobs 2022-09-01 18:11:41 +02:00
Simon Binder 04c3dbf1b5
Fix triggers in example app 2022-08-31 11:58:25 +02:00
Simon Binder ee66465d47
Avoid leading underscores for local identifiers 2022-08-31 00:59:19 +02:00
Simon Binder e8229261e0
Disable locking for `NativeDatabase`
Since the database is synchronous internally, this just adds unnecessary
overhead.
2022-08-31 00:17:33 +02:00
Simon Binder ce35a27069
Prepare 2.1.0 release 2022-08-29 22:27:35 +02:00
Simon Binder 80f8546122
Add tests for null sorting on asc/desc factories 2022-08-29 22:13:04 +02:00
Konstantin Scheglov b399db78e3
Prepare for separating ClassElement, EnumElement, and MixinElement. (#2025)
* Prepare for separating ClassElement, EnumElement, and MixinElement.

* Improve error UX when casting to ClassElement

Co-authored-by: Simon Binder <oss@simonbinder.eu>
2022-08-29 20:44:09 +02:00
Simon Binder 98cb4be7cc
Merge pull request #2024 from Vorkytaka/order_by_nulls
Add `NULLS FIRST\LAST` to the `OrderingTerm`
2022-08-28 22:05:06 +02:00
Vorkytaka a4bff1f9ef Rename `nullsOrder` to `nulls`, move sql strings to enums, add `nulls` argument to the factory methods 2022-08-28 20:20:55 +03:00
Vorkytaka 8cb029a73e Add `NULLS FIRST\LAST` to the `OrderingTerm` 2022-08-28 15:19:44 +03: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 3426fb5408
Improve stack trace for single transformer (#2020) 2022-08-27 00:05:27 +02:00
Simon Binder 678893241e
Update docs on joins 2022-08-27 00:05:27 +02:00
Simon Binder 8431bc928f
Merge pull request #2017 from FaFre/fts5content
Expose fts5 rowid
2022-08-25 21:30:02 +02:00
Simon Binder 76a8a6d35d
Remove unintended override in encryption app 2022-08-25 21:21:21 +02:00