File tree Expand file tree Collapse file tree
crates/vespertide-macro/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,6 +54,14 @@ impl Parse for MacroInput {
5454 }
5555}
5656
57+ /// Build a migration block (non-verbose).
58+ pub ( crate ) fn build_migration_block (
59+ migration : & vespertide_core:: MigrationPlan ,
60+ baseline_schema : & mut Vec < vespertide_core:: TableDef > ,
61+ ) -> Result < proc_macro2:: TokenStream , String > {
62+ build_migration_block_inner ( migration, baseline_schema, false )
63+ }
64+
5765/// Build a migration block with optional verbose logging.
5866pub ( crate ) fn build_migration_block_verbose (
5967 migration : & vespertide_core:: MigrationPlan ,
@@ -217,6 +225,14 @@ fn build_migration_block_inner(
217225 Ok ( block)
218226}
219227
228+ fn generate_migration_code (
229+ pool : & Expr ,
230+ version_table : & str ,
231+ migration_blocks : Vec < proc_macro2:: TokenStream > ,
232+ ) -> proc_macro2:: TokenStream {
233+ generate_migration_code_inner ( pool, version_table, migration_blocks, false )
234+ }
235+
220236fn generate_migration_code_inner (
221237 pool : & Expr ,
222238 version_table : & str ,
You can’t perform that action at this time.
0 commit comments