basalt_cli 0.1.0
basalt_cli: ^0.1.0 copied to clipboard
The `basalt` command-line tool for the Basalt Dart ORM — migrations, database reset, and schema generation over any pluggable backend.
Changelog #
0.1.0 #
- Breaking:
generate-schemaemits the new table-marker shape:final class X extends TableRef<X>with a private const constructor, astatic const tablesingleton, columns holding a typedtablereference instead of a repeated name string, and acolumnsgetter override as the default projection. - Column declarations are emitted one argument per line with trailing commas,
so generated files stay diff-stable under
dart format. - New guard: a column whose camelCase field name collides with an inherited
TableRef/Objectmember (table,table_name,alias,columns,col,aliased, ...) fails generation with a clear error instead of emitting code that won't compile. - Requires
basalt >=0.1.0 <0.2.0.
0.0.2 #
- Widened the core constraint to
basalt >=0.0.1 <0.1.0so the CLI resolves alongside any 0.0.x core release (caret on 0.0.x pins a single version). No functional changes.
0.0.1 #
Initial development release of the basalt command-line tool.
- Migrations:
migration generate <name>/run/revert/redo/list, tracked in__basalt_schema_migrations. database resetandgenerate-schema(typed schema from a live database via introspection).setupand--config <path>forbasalt.yaml.- Backend-agnostic: no dependency on any backend package.
bin/basalt.dartbootstraps a generated entrypoint (.dart_tool/basalt/) that imports thebackend:package frombasalt.yamlthrough theBasaltAdapterseam.