mssql_orm_dev 0.2.0
mssql_orm_dev: ^0.2.0 copied to clipboard
Generates AppDatabase, typed table queries and custom-SQL reports from a SQL Server schema, for mssql_orm.
Example workflow #
This package is a CLI, so its examples are commands and generated layout rather than a runtime application.
dart run mssql_orm_dev:init
export MSSQL_CONNECTION_STRING='Server=localhost;Database=app;User Id=sa;Password=...;'
dart run mssql_orm_dev:snapshot
dart run mssql_orm_dev:generate
For an offline regeneration after committing the snapshot:
dart run mssql_orm_dev:generate --snapshot
Inspect the generated API in lib/db/generated. Add application behavior to
lib/db/models and lib/db/extensions, and place custom SQL under
lib/db/queries. Never edit generated output directly.
See the package README and CLI reference.