Skip to main content

prepare_db

Function prepare_db 

Source
pub fn prepare_db(
    conn: &Connection,
    table_name: &str,
    reset: bool,
    columns: &[Column],
) -> Result<()>
Expand description

Prepares the database schema by creating tables and synchronizing columns.

If reset is true, the existing table is dropped and recreated.