Skip to main content

ensure_schema

Function ensure_schema 

Source
pub async fn ensure_schema(conn: &Connection) -> Result<(), StoreError>
Expand description

Ensure the libSQL schema exists on a fresh or previously-created database.

ยงErrors

Returns StoreError::Backend when any idempotent DDL statement fails at the libSQL boundary.