Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a .ledger file which is built by make examples #445

Merged
merged 3 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ generate: format
lint:
golangci-lint --config=.golangci.yml run

examples:
ledger:
ls examples/* > examples/.ledger

examples: ledger
@go build
@./pgroll init
@./pgroll bootstrap examples
Expand Down
39 changes: 39 additions & 0 deletions examples/.ledger
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
examples/01_create_tables.json
ryanslade marked this conversation as resolved.
Show resolved Hide resolved
examples/02_create_another_table.json
examples/03_add_column.json
examples/04_rename_table.json
examples/05_sql.json
examples/06_add_column_to_sql_table.json
examples/07_drop_table.json
examples/08_create_fruits_table.json
examples/09_drop_column.json
examples/10_create_index.json
examples/11_drop_index.json
examples/12_create_employees_table.json
examples/13_rename_column.json
examples/14_add_reviews_table.json
examples/15_set_column_unique.json
examples/16_set_nullable.json
examples/17_add_rating_column.json
examples/18_change_column_type.json
examples/19_create_orders_table.json
examples/20_create_posts_table.json
examples/21_add_foreign_key_constraint.json
examples/22_add_check_constraint.json
examples/23_drop_check_constraint.json
examples/24_drop_foreign_key_constraint.json
examples/25_add_table_with_check_constraint.json
examples/26_add_column_with_check_constraint.json
examples/27_drop_unique_constraint.json
examples/28_different_defaults.json
examples/29_set_replica_identity.json
examples/30_add_column_simple_up.json
examples/31_unset_not_null.json
examples/32_sql_on_complete.json
examples/33_rename_check_constraint.json
examples/34_create_events_table.json
examples/35_alter_column_multiple.json
examples/36_set_comment_to_null.json
examples/37_create_partial_index.json
examples/38_create_hash_index_with_fillfactor.json
examples/39_add_column_with_multiple_pk_in_table.json
Loading