row_row_row 0.1.0 copy "row_row_row: ^0.1.0" to clipboard
row_row_row: ^0.1.0 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.0 Initial Release #

  • Initial version of the Supabase row generator.
  • Connects to Supabase via Service Role Key using .env file.
  • Fetches schema by parsing the OpenAPI specification from /rest/v1/.
  • Generates Dart model classes (<TableName>Row) in lib/row_row_row_generated/tables/.
  • Generated classes include:
    • camelCase fields corresponding to snake_case columns.
    • const constructor with required/optional named parameters.
    • fromJson factory constructor.
    • toJson method.
    • Static field record 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 / -f to optionally format generated code.
    • --help / -h to display usage.
5
likes
0
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

A command-line tool to generate Dart models for Supabase table rows based on the OpenAPI spec.

Repository (GitHub)
View/report issues

Topics

#supabase #code-generation #dart #cli

License

unknown (license)

Dependencies

args, dotenv, http

More

Packages that depend on row_row_row