parser

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package parser provides functions to load and parse SQLite schemas

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromDB added in v0.1.4

func FromDB(db *sql.DB) (*schema.Database, error)

FromDB extracts the schema from an open database connection

func FromDirectory

func FromDirectory(dir string) (*schema.Database, error)

FromDirectory loads all .sql files from a directory by applying them to an in-memory database

func FromSQL

func FromSQL(sqlContent string) (*schema.Database, error)

FromSQL parses SQL by executing it against an in-memory SQLite database

Types

This section is empty.

Jump to

Keyboard shortcuts

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