Closed v1a0 closed 2 years ago
db = SQLite3x(
path='database.db',
init_connection=False # Disable connection initialization within database class object
)
db.connect(check_same_thread=False) # example
print(db.tables_names)
db.disconnect()
Add new parameter into init of Database classes, something like
auto_conn
or justconnect
orinit_conn
, which means "connect immediately" with object initialization. After adding "with-as" statement support it might be reasonable to creating object without creation connection. This parameter have to beTrue
by default.In code:
Welcome you to join this discussion! How should we name this parameter?