Database¶
- class esbonio.sphinx_agent.database.Database(dbpath)[source]¶
- class Column(name: 'str', dtype: 'str', notnull: 'bool' = False, default: 'Any | None' = None, pk: 'int' = 0)[source]¶
- class Table(name: 'str', columns: 'list[Database.Column]')[source]¶
- property create_statement¶
Return the SQL statement required to create this table.
- clear_table(table, **kwargs)[source]¶
Clear the given table
- Parameters:
kwargs – Constraints to limit the rows that get cleared