new-db-connection ( class -- obj )


Vocabulary
db.private

Inputs
classa class


Outputs
obja db-connection


Word description
Creates a new database object from a given class with caches for prepared statements. Does not actually connect to the database until db-open or with-db is called.

Notes
User-defined databases must call this constructor word instead of new.

Definition