neuralib.sqlp.cli.Database

class neuralib.sqlp.cli.Database[source]

Bases: object

A class for the common usage of using sqlite.

__init__()

Methods

__init__()

open_connection()

open a connection to the database.

Attributes

database_file

sqlite database filepath

database_tables

supporting tables

sqlp_debug_mode

sqlp_debug_mode = False
abstract property database_file: Path | None

sqlite database filepath

abstract property database_tables: list[type]

supporting tables

open_connection()[source]

open a connection to the database.

Return type:

Connection