package
Version:
v0.2.1
Opens a new window with list of versions in this module.
Published: Sep 4, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package parser provides functions to load and parse SQLite schemas.
BaseFS returns the filesystem used for reading schema files.
It returns nil when reading from the OS filesystem.
FromDB extracts the schema from an open database connection.
FromSQL parses SQL by executing it against an in-memory SQLite database.
ReadFiles parses all .sql files in a directory into a schema.
func SetBaseFS(fsys fs.FS)
SetBaseFS sets the base filesystem for reading schema files.
Use an embed.FS to read from embedded files.
Pass nil to revert to the OS filesystem.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.