Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
db-catalyst
command
Package main implements the db-catalyst CLI.
|
Package main implements the db-catalyst CLI. |
|
sqlfix
command
Package main implements the sqlfix tool for automated SQL rewrites.
|
Package main implements the sqlfix tool for automated SQL rewrites. |
|
sqlfix-sqlc
command
Package main implements the sqlfix-sqlc tool for migrating sqlc configurations.
|
Package main implements the sqlfix-sqlc tool for migrating sqlc configurations. |
|
examples
|
|
|
advanced
command
|
|
|
advanced/types
Package types provides domain types for the advanced example.
|
Package types provides domain types for the advanced example. |
|
complex
command
|
|
|
internal
|
|
|
cache
Package cache provides caching for parsed schemas and query ASTs.
|
Package cache provides caching for parsed schemas and query ASTs. |
|
cli
Package cli provides the command-line interface logic for db-catalyst.
|
Package cli provides the command-line interface logic for db-catalyst. |
|
codegen
Package codegen orchestrates the generation of Go code from SQL.
|
Package codegen orchestrates the generation of Go code from SQL. |
|
codegen/ast
Package ast provides types and logic for building Go ASTs.
|
Package ast provides types and logic for building Go ASTs. |
|
codegen/render
Package render formats and writes generated Go code.
|
Package render formats and writes generated Go code. |
|
codegen/rust
Package rust generates Rust code using text templates.
|
Package rust generates Rust code using text templates. |
|
codegen/sql
Package sql generates SQL schema definitions from a database catalog.
|
Package sql generates SQL schema definitions from a database catalog. |
|
codegen/typescript
Package typescript generates TypeScript code using text templates.
|
Package typescript generates TypeScript code using text templates. |
|
config
Package config loads and validates the db-catalyst configuration.
|
Package config loads and validates the db-catalyst configuration. |
|
diagnostics
Package diagnostics provides rich diagnostic information for db-catalyst.
|
Package diagnostics provides rich diagnostic information for db-catalyst. |
|
engine
Package engine defines the database engine abstraction layer.
|
Package engine defines the database engine abstraction layer. |
|
engine/builtin
Package builtin registers all built-in database engines.
|
Package builtin registers all built-in database engines. |
|
engine/mysql
Package mysql provides the MySQL database engine implementation.
|
Package mysql provides the MySQL database engine implementation. |
|
engine/postgres
Package postgres provides the PostgreSQL database engine implementation.
|
Package postgres provides the PostgreSQL database engine implementation. |
|
engine/sqlite
Package sqlite provides the SQLite database engine implementation.
|
Package sqlite provides the SQLite database engine implementation. |
|
fileset
Package fileset handles file path resolution and glob expansion.
|
Package fileset handles file path resolution and glob expansion. |
|
logging
Package logging provides a configured slog logger for db-catalyst.
|
Package logging provides a configured slog logger for db-catalyst. |
|
parser
Package parser provides a high-level SQL parser with functional options.
|
Package parser provides a high-level SQL parser with functional options. |
|
parser/dialects
Package dialects implements SQL dialect parsers.
|
Package dialects implements SQL dialect parsers. |
|
parser/grammars
Package grammars defines SQL dialect grammars.
|
Package grammars defines SQL dialect grammars. |
|
parser/languages/graphql
Package graphql implements a GraphQL schema parser.
|
Package graphql implements a GraphQL schema parser. |
|
pipeline
Package pipeline orchestrates the entire code generation process.
|
Package pipeline orchestrates the entire code generation process. |
|
query/analyzer
Package analyzer validates and resolves SQL queries against a schema catalog.
|
Package analyzer validates and resolves SQL queries against a schema catalog. |
|
query/block
Package block handles the parsing of SQL query blocks.
|
Package block handles the parsing of SQL query blocks. |
|
query/parser
Package parser implements a SQL parser for query validation and parameter extraction.
|
Package parser implements a SQL parser for query validation and parameter extraction. |
|
schema/diagnostic
Package diagnostic provides shared types for schema parsing diagnostics.
|
Package diagnostic provides shared types for schema parsing diagnostics. |
|
schema/model
Package model defines normalized schema catalog types produced by the parser.
|
Package model defines normalized schema catalog types produced by the parser. |
|
schema/parser
Package parser implements a DDL parser for SQLite schemas.
|
Package parser implements a DDL parser for SQLite schemas. |
|
schema/parser/mysql
Package mysql provides SQL keyword constants for the MySQL parser.
|
Package mysql provides SQL keyword constants for the MySQL parser. |
|
schema/parser/postgres
Package postgres provides SQL keyword constants for the PostgreSQL parser.
|
Package postgres provides SQL keyword constants for the PostgreSQL parser. |
|
schema/tokenizer
Package tokenizer scans SQL source code into tokens.
|
Package tokenizer scans SQL source code into tokens. |
|
sqlfix
Package sqlfix implements tools for automated SQL rewrites and migration.
|
Package sqlfix implements tools for automated SQL rewrites and migration. |
|
sqlfix/overrides
Package overrides handles conversion of sqlc configuration overrides to db-catalyst format.
|
Package overrides handles conversion of sqlc configuration overrides to db-catalyst format. |
|
sqlfix/sqlcconfig
Package sqlcconfig parses sqlc configuration files.
|
Package sqlcconfig parses sqlc configuration files. |
|
transform
Package transform handles custom type transformations.
|
Package transform handles custom type transformations. |
|
types
Package types provides PostgreSQL-specific type mappings.
|
Package types provides PostgreSQL-specific type mappings. |
Click to show internal directories.
Click to hide internal directories.