function
Open
Open a SQLite store at a filesystem path, file URI, or private in-memory database.
Example
backend, err := sqlite.Open(ctx, os.Getenv("RIDU_SQLITE_PATH"))
if err != nil {
return err
}
defer backend.Close()Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
path | string | The path value. |
Returns
The declared result.
(*Store, error)Full signature
Related types
StoreA SQLite implementation of Ridu’s document, snapshot, auth, preference, task, lock, version, and migration store contracts.