Creates a new or opens an existing DuckDB database for storing ALprekDB panel data. New databases are initialized with the ALprekDB schema (metadata and column type registry tables). Existing databases are validated for schema compatibility.
Examples
if (FALSE) { # \dontrun{
conn <- db_init("output/alprekdb.duckdb")
db_list_tables(conn)
db_close(conn)
} # }