sqlite

package
v0.23.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: Apache-2.0, BSD-3-Clause, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDB

func GenerateDB(db *sql.DB, destDir string, templates ...template.Template) error

GenerateDB generates jet files using the provided *sql.DB

func GenerateDSN

func GenerateDSN(dsn, destDir string, templates ...template.Template) error

GenerateDSN generates jet files using dsn connection string

func ReadSchema

func ReadSchema(db *sql.DB) (metadata.Schema, error)

ReadSchema reads the metadata of the main database of db, as GenerateDB does, and prints nothing. Each table also carries its foreign keys and the declared type of each column, which GenerateDB does not read. Pass the result to template.Render to generate the files in memory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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