function

Open

func Open( ctx context.Context, path string, ) (*Store, error)

Open a SQLite store at a filesystem path, file URI, or private in-memory database.

Source adapters/sqlite/sqlite.go:64

@param ctx
The ctx value.
@param path
The path value.
@returns
The declared result.

Example

go
backend, err := sqlite.Open(ctx, os.Getenv("RIDU_SQLITE_PATH"))
if err != nil {
  return err
}
defer backend.Close()

Related types

  • Store

    A SQLite implementation of Ridu’s document, snapshot, auth, preference, task, lock, version, and migration store contracts.