discord-bot/libs/sqlite_orm-1.8.2/TODO.md

28 lines
1.6 KiB
Markdown
Raw Normal View History

2024-02-25 14:05:45 -05:00
# To do list
`sqlite_orm` is a wonderful library but there are still features that are not implemented. Here you can find a list of them:
* `FOREIGN KEY` - sync_schema fk comparison and ability of two tables to have fk to each other (`PRAGMA foreign_key_list(%table_name%);` may be useful)
* rest of core functions(https://sqlite.org/lang_corefunc.html)
* `ATTACH`
* blob incremental I/O https://sqlite.org/c3ref/blob_open.html
* CREATE VIEW and other view operations https://sqlite.org/lang_createview.html
* query static check for correct order (e.g. `GROUP BY` after `WHERE`)
* `WINDOW`
* `SAVEPOINT` https://www.sqlite.org/lang_savepoint.html
* add `static_assert` in crud `get*` functions in case user passes `where_t` instead of id to make compilation error more clear (example https://github.com/fnc12/sqlite_orm/issues/485)
* named constraints: constraint can have name `CREATE TABLE heroes(id INTEGER CONSTRAINT pk PRIMARY KEY)`
* `FILTER` clause https://sqlite.org/lang_aggfunc.html#aggfilter
* scalar math functions https://sqlite.org/lang_mathfunc.html
* improve DROP COLUMN in `sync_schema` https://sqlite.org/lang_altertable.html#altertabdropcol
* `UPDATE FROM` support https://sqlite.org/lang_update.html#upfrom
* `iif()` function https://sqlite.org/lang_corefunc.html#iif
* add strong typed collate syntax (more info [here](https://github.com/fnc12/sqlite_orm/issues/767#issuecomment-887689672))
* strict tables https://sqlite.org/stricttables.html
* static assert when UPDATE is called with no PKs
* `json_each` and `json_tree` functions for JSON1 extension
* update hook
* `RAISE`
Please feel free to add any feature that isn't listed here and not implemented yet.