row_row_row 0.1.1
row_row_row: ^0.1.1 copied to clipboard
A command-line tool to generate Dart models for Supabase table rows based on the OpenAPI spec.
Changelog #
All notable changes to this project will be documented in this file.
0.1.1 Package Usability Improvements #
- Updated package configuration to support usage from other projects.
- Fixed executable configuration in
pubspec.yaml. - Updated README with clearer installation and usage instructions:
- Added instructions for using as a dependency.
- Added instructions for global activation.
- Clarified command usage patterns for all installation methods.
0.1.0 Initial Release #
- Initial version of the Supabase row generator.
- Connects to Supabase via Service Role Key using
.envfile. - Fetches schema by parsing the OpenAPI specification from
/rest/v1/. - Generates Dart model classes (
<TableName>Row) inlib/row_row_row_generated/tables/. - Generated classes include:
camelCasefields corresponding tosnake_casecolumns.constconstructor with required/optional named parameters.fromJsonfactory constructor.toJsonmethod.- Static
fieldrecord mapping Dart fields to DB column names.
- Generates a schema report text file in
lib/row_row_row_generated/db_schema_report/. - Provides CLI options:
--dart-format/-fto optionally format generated code.--help/-hto display usage.