A portable SQLite subset with typed statements, an AOT compiler and SQLite page output
| パッケージ | 用途 |
|---|---|
| mizchi/sqlike | Connection / Statement / Bind / Column / Value、事前コンパイルした Program、DB イメージと SQLite ページ |
| mizchi/sqlike/compiler | ビルド時の compile_program。SQL 文字列を解析して固定スキーマとクエリ AST を生成 |
| mizchi/sqlike/fts | 任意の転置index・phrase / prefix / boolean検索・BM25。通常のSQL runtimeから独立 |
import {
"mizchi/sqlike@0.1.0",
}trait Bindtrait Columnpub suberror SqliteError {
SqliteError(code~ : ErrorCode, extended~ : ExtendedCode?, msg~ : String)
}type Connectionpub(all) enum ErrorCode {
Error
Busy
ReadOnly
Corrupt
Constraint
Mismatch
Misuse
Range
CantOpen
Unknown(Int)
} derive(Eq)pub(all) enum ExtendedCode {
ConstraintCheck
ConstraintForeignKey
ConstraintNotNull
ConstraintPrimaryKey
ConstraintUnique
ConstraintTrigger
ConstraintDatatype
Unknown(Int)
} derive(Eq)type Programtype Statementfn defined_export_sqlite(schema : Bytes, statements : Bytes, layout : Bytes, image : Bytes) -> SqliteResultInstall
Download zipA portable SQLite subset with typed statements, an AOT compiler and SQLite page output