insert Default Values
Inserts a new row into the table using the default values for all columns.
This function executes an INSERT INTO <table> DEFAULT VALUES statement. It's useful when all columns in the table have a defined DEFAULT value, are nullable, or are auto-incrementing.
If any column without a default value is defined as NOT NULL, this operation will fail.
Example:
// Assuming 'Logs' table has columns with default values or that can be null
Logs.insertDefaultValues()
// This would execute: INSERT INTO Logs DEFAULT VALUES;Content copied to clipboard
Author
MOHAMMAD AZIM ANSARI
Type Parameters
T
The type of the KQLiteTable.
See also
Throws
if a database error occurs (e.g., a NOT NULL constraint is violated).