sql2dart

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

sql2dart

sql2dart #
Generate dart type definitions from PostgreSQL database schema (MVP)
Installation: #
The package can be installed as follow:
[~] dart pub global activate sql2dart
copied to clipboard
Usage: #
Within a dart/flutter project directory, you can run one of the following examples:


generate data classes for public schema (default)
sql2dart -c postgresql://postgres:postgres@localhost:54322/postgres -o path/to/output/directory
copied to clipboard


generate for data classes for a "cms" schema
sql2dart -c <connection-string> -o <output-dir> -s cms
copied to clipboard


generate data classes for specific tables from public schema (format sensitive):
sql2dart -c <connection-string> -o <output-dir> -t "users","posts"
copied to clipboard
or
sql2dart -c <connection-string> -o <output-dir> --schema=api --tables="profiles","posts"
copied to clipboard


Sample Output: #
The following folder: example/sample_output contains a sample output from Supabase's auth schema.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.