sqlt

package module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 4 Imported by: 0

README

tinywasm/sqlt

SQLite SQL compiler. Implements storage.Compiler (DML) and ddl.Compiler (DDL) — translates storage.Query/ddl.Stmt into SQLite SQL. ExportDDL builds full-schema SQL (ordered via ddl.TopologicalSort) for build-time schema generation. Pure compiler: no connections, no execution — see tinywasm/sqlite for the driver that wraps a real *sql.DB in a storage.Conn.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCompiler added in v0.0.2

func NewCompiler() *compiler

NewCompiler returns a *compiler that implements storage.Compiler and ddl.Compiler.

func Translate added in v0.0.2

func Translate(q storage.Query, m model.Model) (string, []any, error)

Translate converts a storage.Query into a SQLite SQL string and positional args.

func TranslateDDL added in v0.0.8

func TranslateDDL(s ddl.Stmt, m model.Model) (string, []any, error)

TranslateDDL converts a ddl.Stmt into a SQLite SQL string and positional args.

Types

This section is empty.

Jump to

Keyboard shortcuts

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