onCreate

protected open fun onCreate(connection: SQLiteConnection)

Called when the database is created for the first time. This invokes after all tables returned by getKQLiteTables have been created.

This is only called when open is invoked and the database file does not exist or its version is 0.

Common uses include inserting initial data into the newly created tables.

Author

MOHAMMAD AZIM ANSARI

Parameters

connection

Current active SQLiteConnection

See also