schema

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package schema handles SQLite database schema creation and migration.

Index

Constants

View Source
const CurrentVersion = 1

CurrentVersion is the current schema version.

View Source
const FTSSchema = `` /* 1145-byte string literal not displayed */

FTSSchema contains the full-text search virtual table DDL.

View Source
const Schema = `` /* 1625-byte string literal not displayed */

Schema contains all DDL statements for the clarification database.

Variables

This section is empty.

Functions

func GetVersion

func GetVersion(ctx context.Context, db *sql.DB) (int, error)

GetVersion returns the current schema version, or 0 if not initialized.

func Initialize

func Initialize(ctx context.Context, db *sql.DB) (int, error)

Initialize creates the database schema if it doesn't exist. Returns the current schema version.

func Validate

func Validate(ctx context.Context, db *sql.DB) error

Validate checks schema integrity.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL