Commit Graph

275 Commits

Author SHA1 Message Date
Simon Binder 94c4c1a8e0
Document #2537 better 2023-07-25 23:24:08 +02:00
Simon Binder e433cff932
Update docs for nested columns 2023-07-24 21:10:04 +02:00
fabiancrx ed06182dbf
fix typo 2023-07-21 11:59:46 -04:00
Simon Binder 03d3c837be
Add support for subqueries.
Closes #612.
2023-07-20 22:30:20 +02:00
Prasanna Venkatesh T S 020d63a973
Fix typo in docs 2023-07-18 11:57:42 -05:00
Simon Binder f6f2d54190
Highlight warning more 2023-07-06 21:58:45 +02:00
Brian Egan 3e6cf51eea Only remove available implementations entries if they're available 2023-07-06 11:44:54 +01:00
Simon Binder 2420c8d7c6
Merge branch 'simple-schema-versions' into develop 2023-07-01 18:31:59 +02:00
Simon Binder 312fa3219f
Add docs for step-by-step migrations 2023-07-01 18:11:41 +02:00
Eli Geller 2538ed9e2a
web.md typo fixes (#2500)
Some small typo fixes.

Congrats on getting stable web support! And thanks!
2023-06-28 12:28:43 +02:00
M. Javad Pourqavam e6cccafd40
Fix a typo in docs (#2499)
"acessing" to "accessing"
2023-06-27 16:10:25 +02:00
Simon Binder 81315c3d69
Migrate mentions of `flutter pub run` 2023-06-19 16:09:47 +02:00
Simon Binder e5491beaeb
Update web-wasm documentation 2023-06-18 21:10:44 +02:00
Simon Binder 39953e13cc
Handle issues spawning workers better 2023-06-18 20:25:45 +02:00
Simon Binder d465776726
Merge branch 'web-v2' into develop 2023-06-17 22:51:49 +02:00
Simon Binder 0bf6d0c384
Update web docs 2023-06-17 22:14:59 +02:00
Simon Binder 334e522276
Migrate some more doc references from old pkg name 2023-06-16 17:15:42 +02:00
Simon Binder 1e74aae972
Update new web documentation 2023-06-15 00:08:14 +02:00
Simon Binder 4411e0c459
Add `fatal_warnings` build option 2023-06-13 22:08:07 +02:00
Simon Binder ec5927bc2a
Add web compatibility information to web page 2023-05-31 23:48:13 +02:00
Simon Binder 28417c52af
Fix lints and warnings added in Dart 3.0 2023-05-12 22:42:21 +02:00
Simon Binder 18868221d9
Support doc comments for columns in drift files 2023-05-10 12:00:44 +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 6bb2c3d2c5
Support named constructors for rows in drift file 2023-04-23 16:21:31 +02:00
Simon Binder b4b4e350dd
Simplify creation of web workers for drift 2023-04-10 23:01:30 +02:00
Shion d63701201a Fix typo 2023-04-04 17:06:42 +02:00
Simon Binder 954de410a9
Add new clean architecture example 2023-03-21 17:41:42 +01:00
Simon Binder a6bdd26c93
Remove outdated warnings about drift/wasm 2023-03-20 17:41:57 +01:00
Simon Binder 94744d54f3
Add documentation warning about defunct IDE 2023-03-11 22:16:39 +01:00
Simon Binder 23017f60e1
Improve docs for `computeWithDatabase` 2023-03-06 21:56:25 +01:00
Simon Binder d9498bdb9d
Remove experimental warning for modular mode 2023-03-06 21:30:50 +01:00
Greg Price 3ab33227b7 Make explicit `schema generate` command for migration data tests
These flags are mentioned in the prose of this section, but it's
easy to miss them (or at least, I missed them) there and rely on
the `schema generate` command given in the previous section.
That one generates the expected files, but with this section's code
it leads to an error:

    Unsupported operation: TableInfo.map in schema verification code

because the generated code has a stub implementation of `map`.

Make it easier to spot the need for these flags by providing an
explicit complete command using them.
2023-02-28 11:34:13 -08:00
Simon Binder 46390a2da5
Add `insertFromSelect` Dart API 2023-02-25 15:29:55 +01:00
Simon Binder 039ff942f7
Add docs on schema reflection 2023-02-17 18:21:52 +01:00
Simon Binder d30d2a1212
Add backup/restore functionality to example app 2023-02-08 00:35:55 +01:00
Simon Binder 4bd5192e46
Improve documentation for isolates 2023-01-29 16:13:20 +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 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 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 104cb9be07
Document builder option 2022-12-31 14:16:09 +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 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 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 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 51f4c28283
Document new type converters 2022-10-18 20:39:50 +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 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 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 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 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 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 1ff7ddbd82
Document dates as text on website 2022-07-25 15:26:16 +02:00
Simon Binder ef3ee418d4
Update docs on custom SQL 2022-07-16 11:51:21 +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 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 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