luminadb.database module
SQLite Database
- class luminadb.database.Database(path: str, **kwargs)[source]
Bases:
objectSqlite3 database, this provide basic integration.
- Custom flags:
strict : Certain actions are prevented when active, i.e, initializing nonexistent tables forgive: Certain actions are replaced when active, i.e, replacing .create_table to .table
when a table exists
- property closed
Is database closed?
- create_table(table: str, columns: Iterable[Column] | Iterable[BuilderColumn])[source]
Create table
- cursor() WithCursor[source]
Create cursor
- foreign_pragma(bool_state: Literal['ON', 'OFF', ''] = '')[source]
Enable/disable foreign key pragma
- property path
Path to SQL Connection
- reset_table(table: str, columns: Iterable[Column] | Iterable[BuilderColumn]) Table[source]
Reset existing table with new, this rewrote entire table than altering it.
- property sql
SQL Connection