Skip to main content

Module sql

Module sql 

Source
Expand description

Glue between the CLI and spikard_codegen::sql.

Reads schema DDL + annotated query files from disk, runs scythe’s parser and analyzer, builds the handler set via spikard_codegen::sql, and writes handlers.json (route list), openapi.json (the spec), and spikard-sql.json (sidecar) to the output directory.

Structs§

SqlCodegenConfig
SqlCodegenOutput
Output of generate_from_sql_dir — the three artifacts always written to the output directory.

Functions§

generate_from_sql_dir