You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -361,7 +361,8 @@ class ViewModel {
361
361
## FTS5
362
362
FTS5 is supported but has some additional requirements.
363
363
To generate usable structs Otter needs type information even though they not valid FTS arguments.
364
-
FTS 5 currently is the only virtual table module supported at this time.
364
+
Specifying the type is **required** and an optional `NOT NULL` is allowed. These are not FTS5
365
+
arguments so they will be removed from the final migration.
365
366
```sql
366
367
CREATE VIRTUAL TABLE searchIndex USING fts5 (
367
368
id INTEGERNOT NULL,
@@ -373,13 +374,17 @@ WHERE foo MATCH 'search terms'
373
374
ORDER BY rank;
374
375
```
375
376
376
-
> [!NOTE]
377
-
> All types and not `NOT NULL` constraints will be removed from the final migration.
378
-
379
377
## Upcoming Features
378
+
Otter is a young project and there are a lot of new features and functionality I want to add.
379
+
Below are some idea that I would love input on!
380
380
* Support for multiple statements in a single query
381
381
* Kotlin library/generation
382
-
* Custom functions
382
+
* Generating Kotlin would allow SQLite based apps to basically share their model/data layer
383
+
* User defined functions
384
+
* SQLite supports custom functions which are a great way to share common logic amongst queries
385
+
* Queries with multiple statements
386
+
* Would allow for easier loading of more complex models that have many joins
387
+
* Want to allow other queries to be called from within the body to help centrize logic.
383
388
384
389
## Contributions
385
390
Contributions are welcome and encouraged! Feel free to make a PR or open an issue. If the change is large please open an issue first to make sure the change is desired.
0 commit comments