├── .github └── ISSUE_TEMPLATE │ └── please-open-issues-in-avram-repo.md ├── .gitignore ├── .travis.yml ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── bin ├── setup ├── test └── test_tasks ├── config └── database.cr ├── db └── migrations │ ├── 20170127143149_create_users.cr │ ├── 20170127143150_create_admins.cr │ ├── 20170127143151_create_sign_in_credentials.cr │ ├── 20171006163153_create_posts_and_comments.cr │ ├── 20171130064637_create_managers_and_employees.cr │ ├── 20180102171226_add_published_at_to_posts.cr │ ├── 20180102195309_add_non_model_field_to_users.cr │ ├── 20180113081408_create_companies.cr │ ├── 20180115194734_create_taggings.cr │ ├── 20180612221318_create_businesses.cr │ ├── 20180625202051_create_line_item.cr │ ├── 20180627220827_create_price_for_line_items.cr │ ├── 20180627231023_create_scans_for_line_items.cr │ ├── 20180628193054_create_product.cr │ └── 20180628193336_create_line_items_products.cr ├── shard.yml ├── spec ├── associations_spec.cr ├── bool_criteria_spec.cr ├── criteria_spec.cr ├── field_spec.cr ├── form_callbacks_spec.cr ├── form_needs_spec.cr ├── form_spec.cr ├── insert_spec.cr ├── join_spec.cr ├── lazy_loading_spec.cr ├── migrator │ ├── alter_table_statement_spec.cr │ ├── change_null_statement_spec.cr │ ├── create_foreign_key_statement_spec.cr │ ├── create_index_statement_spec.cr │ ├── create_table_statement_spec.cr │ ├── drop_index_statement_spec.cr │ ├── drop_table_statement_spec.cr │ ├── gen │ │ └── migration_spec.cr │ └── migration_spec.cr ├── model_spec.cr ├── nested_form_spec.cr ├── preloading_spec.cr ├── query_associations_spec.cr ├── query_builder_spec.cr ├── query_spec.cr ├── spec_helper.cr ├── string_criteria_spec.cr ├── support │ ├── admin.cr │ ├── base_box.cr │ ├── boxes │ │ ├── admin_box.cr │ │ ├── business_box.cr │ │ ├── comment_box.cr │ │ ├── company_box.cr │ │ ├── employee_box.cr │ │ ├── line_item_box.cr │ │ ├── line_items_products_box.cr │ │ ├── manager_box.cr │ │ ├── post_box.cr │ │ ├── price_box.cr │ │ ├── product_box.cr │ │ ├── scan_box.cr │ │ ├── sign_in_credential_box.cr │ │ ├── tag_box.cr │ │ ├── tagging_box.cr │ │ └── user_box.cr │ ├── business.cr │ ├── cleanup_helper.cr │ ├── comment.cr │ ├── company.cr │ ├── custom_email.cr │ ├── employee.cr │ ├── key_holder.cr │ ├── lazy_load_helpers.cr │ ├── line_item.cr │ ├── line_item_product.cr │ ├── manager.cr │ ├── post.cr │ ├── price.cr │ ├── product.cr │ ├── scan.cr │ ├── sign_in_credential.cr │ ├── tag.cr │ ├── tagging.cr │ ├── task.cr │ └── user.cr ├── time_criteria_spec.cr ├── transaction_spec.cr ├── type_extension_spec.cr ├── type_extensions │ ├── bool_spec.cr │ ├── time_spec.cr │ └── uuid_spec.cr ├── validations_spec.cr ├── virtual_form_spec.cr ├── virtual_spec.cr └── where_spec.cr ├── src ├── lucky_record.cr ├── lucky_record │ ├── associations.cr │ ├── base_form_template.cr │ ├── base_query_template.cr │ ├── blank_extensions.cr │ ├── box.cr │ ├── callbacks.cr │ ├── charms │ │ ├── bool_extensions.cr │ │ ├── float64_extensions.cr │ │ ├── int32_extensions.cr │ │ ├── int64_extensions.cr │ │ ├── string_extensions.cr │ │ ├── time_extensions.cr │ │ └── uuid_extensions.cr │ ├── criteria.cr │ ├── errors.cr │ ├── field.cr │ ├── fillable_field.cr │ ├── form.cr │ ├── insert.cr │ ├── join.cr │ ├── mark_as_failed.cr │ ├── migrator │ │ ├── alter_table_statement.cr │ │ ├── change_null_statement.cr │ │ ├── column_default_helpers.cr │ │ ├── column_type_option_helpers.cr │ │ ├── create_foreign_key_statement.cr │ │ ├── create_index_statement.cr │ │ ├── create_table_statement.cr │ │ ├── drop_index_statement.cr │ │ ├── drop_table_statement.cr │ │ ├── index_statement_helpers.cr │ │ ├── migration.cr │ │ ├── migrator.cr │ │ ├── primary_key_type.cr │ │ ├── references_helper.cr │ │ ├── runner.cr │ │ └── statement_helpers.cr │ ├── model.cr │ ├── needy_initializer_and_save_methods.cr │ ├── nested_form.cr │ ├── paramable.cr │ ├── params.cr │ ├── postgres_url.cr │ ├── primary_key_type.cr │ ├── query.cr │ ├── query_builder.cr │ ├── queryable.cr │ ├── repo.cr │ ├── schema_enforcer.cr │ ├── tasks │ │ ├── db │ │ │ ├── create.cr │ │ │ ├── drop.cr │ │ │ ├── migrate.cr │ │ │ ├── migrate_one.cr │ │ │ ├── redo.cr │ │ │ ├── rollback.cr │ │ │ └── rollback_all.cr │ │ └── gen │ │ │ ├── migration.cr │ │ │ └── migration.ecr │ ├── type.cr │ ├── validations.cr │ ├── validations │ │ └── callable_error_message.cr │ ├── version.cr │ ├── virtual.cr │ ├── virtual_form.cr │ └── where.cr ├── precompiled_tasks │ └── gen │ │ └── migration.cr └── run_macros │ └── infer_table_name.cr └── tasks.cr /.github/ISSUE_TEMPLATE/please-open-issues-in-avram-repo.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/.github/ISSUE_TEMPLATE/please-open-issues-in-avram-repo.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/.travis.yml -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/README.md -------------------------------------------------------------------------------- /bin/setup: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/bin/setup -------------------------------------------------------------------------------- /bin/test: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/bin/test -------------------------------------------------------------------------------- /bin/test_tasks: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/bin/test_tasks -------------------------------------------------------------------------------- /config/database.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/config/database.cr -------------------------------------------------------------------------------- /db/migrations/20170127143149_create_users.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/db/migrations/20170127143149_create_users.cr -------------------------------------------------------------------------------- /db/migrations/20170127143150_create_admins.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/db/migrations/20170127143150_create_admins.cr -------------------------------------------------------------------------------- /db/migrations/20170127143151_create_sign_in_credentials.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/db/migrations/20170127143151_create_sign_in_credentials.cr -------------------------------------------------------------------------------- /db/migrations/20171006163153_create_posts_and_comments.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/db/migrations/20171006163153_create_posts_and_comments.cr -------------------------------------------------------------------------------- /db/migrations/20171130064637_create_managers_and_employees.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/db/migrations/20171130064637_create_managers_and_employees.cr -------------------------------------------------------------------------------- /db/migrations/20180102171226_add_published_at_to_posts.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/db/migrations/20180102171226_add_published_at_to_posts.cr -------------------------------------------------------------------------------- /db/migrations/20180102195309_add_non_model_field_to_users.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/db/migrations/20180102195309_add_non_model_field_to_users.cr -------------------------------------------------------------------------------- /db/migrations/20180113081408_create_companies.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/db/migrations/20180113081408_create_companies.cr -------------------------------------------------------------------------------- /db/migrations/20180115194734_create_taggings.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/db/migrations/20180115194734_create_taggings.cr -------------------------------------------------------------------------------- /db/migrations/20180612221318_create_businesses.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/db/migrations/20180612221318_create_businesses.cr -------------------------------------------------------------------------------- /db/migrations/20180625202051_create_line_item.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/db/migrations/20180625202051_create_line_item.cr -------------------------------------------------------------------------------- /db/migrations/20180627220827_create_price_for_line_items.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/db/migrations/20180627220827_create_price_for_line_items.cr -------------------------------------------------------------------------------- /db/migrations/20180627231023_create_scans_for_line_items.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/db/migrations/20180627231023_create_scans_for_line_items.cr -------------------------------------------------------------------------------- /db/migrations/20180628193054_create_product.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/db/migrations/20180628193054_create_product.cr -------------------------------------------------------------------------------- /db/migrations/20180628193336_create_line_items_products.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/db/migrations/20180628193336_create_line_items_products.cr -------------------------------------------------------------------------------- /shard.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/shard.yml -------------------------------------------------------------------------------- /spec/associations_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/associations_spec.cr -------------------------------------------------------------------------------- /spec/bool_criteria_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/bool_criteria_spec.cr -------------------------------------------------------------------------------- /spec/criteria_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/criteria_spec.cr -------------------------------------------------------------------------------- /spec/field_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/field_spec.cr -------------------------------------------------------------------------------- /spec/form_callbacks_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/form_callbacks_spec.cr -------------------------------------------------------------------------------- /spec/form_needs_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/form_needs_spec.cr -------------------------------------------------------------------------------- /spec/form_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/form_spec.cr -------------------------------------------------------------------------------- /spec/insert_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/insert_spec.cr -------------------------------------------------------------------------------- /spec/join_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/join_spec.cr -------------------------------------------------------------------------------- /spec/lazy_loading_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/lazy_loading_spec.cr -------------------------------------------------------------------------------- /spec/migrator/alter_table_statement_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/migrator/alter_table_statement_spec.cr -------------------------------------------------------------------------------- /spec/migrator/change_null_statement_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/migrator/change_null_statement_spec.cr -------------------------------------------------------------------------------- /spec/migrator/create_foreign_key_statement_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/migrator/create_foreign_key_statement_spec.cr -------------------------------------------------------------------------------- /spec/migrator/create_index_statement_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/migrator/create_index_statement_spec.cr -------------------------------------------------------------------------------- /spec/migrator/create_table_statement_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/migrator/create_table_statement_spec.cr -------------------------------------------------------------------------------- /spec/migrator/drop_index_statement_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/migrator/drop_index_statement_spec.cr -------------------------------------------------------------------------------- /spec/migrator/drop_table_statement_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/migrator/drop_table_statement_spec.cr -------------------------------------------------------------------------------- /spec/migrator/gen/migration_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/migrator/gen/migration_spec.cr -------------------------------------------------------------------------------- /spec/migrator/migration_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/migrator/migration_spec.cr -------------------------------------------------------------------------------- /spec/model_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/model_spec.cr -------------------------------------------------------------------------------- /spec/nested_form_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/nested_form_spec.cr -------------------------------------------------------------------------------- /spec/preloading_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/preloading_spec.cr -------------------------------------------------------------------------------- /spec/query_associations_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/query_associations_spec.cr -------------------------------------------------------------------------------- /spec/query_builder_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/query_builder_spec.cr -------------------------------------------------------------------------------- /spec/query_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/query_spec.cr -------------------------------------------------------------------------------- /spec/spec_helper.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/spec_helper.cr -------------------------------------------------------------------------------- /spec/string_criteria_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/string_criteria_spec.cr -------------------------------------------------------------------------------- /spec/support/admin.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/admin.cr -------------------------------------------------------------------------------- /spec/support/base_box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/base_box.cr -------------------------------------------------------------------------------- /spec/support/boxes/admin_box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/boxes/admin_box.cr -------------------------------------------------------------------------------- /spec/support/boxes/business_box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/boxes/business_box.cr -------------------------------------------------------------------------------- /spec/support/boxes/comment_box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/boxes/comment_box.cr -------------------------------------------------------------------------------- /spec/support/boxes/company_box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/boxes/company_box.cr -------------------------------------------------------------------------------- /spec/support/boxes/employee_box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/boxes/employee_box.cr -------------------------------------------------------------------------------- /spec/support/boxes/line_item_box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/boxes/line_item_box.cr -------------------------------------------------------------------------------- /spec/support/boxes/line_items_products_box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/boxes/line_items_products_box.cr -------------------------------------------------------------------------------- /spec/support/boxes/manager_box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/boxes/manager_box.cr -------------------------------------------------------------------------------- /spec/support/boxes/post_box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/boxes/post_box.cr -------------------------------------------------------------------------------- /spec/support/boxes/price_box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/boxes/price_box.cr -------------------------------------------------------------------------------- /spec/support/boxes/product_box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/boxes/product_box.cr -------------------------------------------------------------------------------- /spec/support/boxes/scan_box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/boxes/scan_box.cr -------------------------------------------------------------------------------- /spec/support/boxes/sign_in_credential_box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/boxes/sign_in_credential_box.cr -------------------------------------------------------------------------------- /spec/support/boxes/tag_box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/boxes/tag_box.cr -------------------------------------------------------------------------------- /spec/support/boxes/tagging_box.cr: -------------------------------------------------------------------------------- 1 | class TaggingBox < BaseBox 2 | end 3 | -------------------------------------------------------------------------------- /spec/support/boxes/user_box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/boxes/user_box.cr -------------------------------------------------------------------------------- /spec/support/business.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/business.cr -------------------------------------------------------------------------------- /spec/support/cleanup_helper.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/cleanup_helper.cr -------------------------------------------------------------------------------- /spec/support/comment.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/comment.cr -------------------------------------------------------------------------------- /spec/support/company.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/company.cr -------------------------------------------------------------------------------- /spec/support/custom_email.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/custom_email.cr -------------------------------------------------------------------------------- /spec/support/employee.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/employee.cr -------------------------------------------------------------------------------- /spec/support/key_holder.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/key_holder.cr -------------------------------------------------------------------------------- /spec/support/lazy_load_helpers.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/lazy_load_helpers.cr -------------------------------------------------------------------------------- /spec/support/line_item.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/line_item.cr -------------------------------------------------------------------------------- /spec/support/line_item_product.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/line_item_product.cr -------------------------------------------------------------------------------- /spec/support/manager.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/manager.cr -------------------------------------------------------------------------------- /spec/support/post.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/post.cr -------------------------------------------------------------------------------- /spec/support/price.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/price.cr -------------------------------------------------------------------------------- /spec/support/product.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/product.cr -------------------------------------------------------------------------------- /spec/support/scan.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/scan.cr -------------------------------------------------------------------------------- /spec/support/sign_in_credential.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/sign_in_credential.cr -------------------------------------------------------------------------------- /spec/support/tag.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/tag.cr -------------------------------------------------------------------------------- /spec/support/tagging.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/tagging.cr -------------------------------------------------------------------------------- /spec/support/task.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/task.cr -------------------------------------------------------------------------------- /spec/support/user.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/support/user.cr -------------------------------------------------------------------------------- /spec/time_criteria_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/time_criteria_spec.cr -------------------------------------------------------------------------------- /spec/transaction_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/transaction_spec.cr -------------------------------------------------------------------------------- /spec/type_extension_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/type_extension_spec.cr -------------------------------------------------------------------------------- /spec/type_extensions/bool_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/type_extensions/bool_spec.cr -------------------------------------------------------------------------------- /spec/type_extensions/time_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/type_extensions/time_spec.cr -------------------------------------------------------------------------------- /spec/type_extensions/uuid_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/type_extensions/uuid_spec.cr -------------------------------------------------------------------------------- /spec/validations_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/validations_spec.cr -------------------------------------------------------------------------------- /spec/virtual_form_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/virtual_form_spec.cr -------------------------------------------------------------------------------- /spec/virtual_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/virtual_spec.cr -------------------------------------------------------------------------------- /spec/where_spec.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/spec/where_spec.cr -------------------------------------------------------------------------------- /src/lucky_record.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record.cr -------------------------------------------------------------------------------- /src/lucky_record/associations.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/associations.cr -------------------------------------------------------------------------------- /src/lucky_record/base_form_template.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/base_form_template.cr -------------------------------------------------------------------------------- /src/lucky_record/base_query_template.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/base_query_template.cr -------------------------------------------------------------------------------- /src/lucky_record/blank_extensions.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/blank_extensions.cr -------------------------------------------------------------------------------- /src/lucky_record/box.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/box.cr -------------------------------------------------------------------------------- /src/lucky_record/callbacks.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/callbacks.cr -------------------------------------------------------------------------------- /src/lucky_record/charms/bool_extensions.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/charms/bool_extensions.cr -------------------------------------------------------------------------------- /src/lucky_record/charms/float64_extensions.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/charms/float64_extensions.cr -------------------------------------------------------------------------------- /src/lucky_record/charms/int32_extensions.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/charms/int32_extensions.cr -------------------------------------------------------------------------------- /src/lucky_record/charms/int64_extensions.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/charms/int64_extensions.cr -------------------------------------------------------------------------------- /src/lucky_record/charms/string_extensions.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/charms/string_extensions.cr -------------------------------------------------------------------------------- /src/lucky_record/charms/time_extensions.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/charms/time_extensions.cr -------------------------------------------------------------------------------- /src/lucky_record/charms/uuid_extensions.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/charms/uuid_extensions.cr -------------------------------------------------------------------------------- /src/lucky_record/criteria.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/criteria.cr -------------------------------------------------------------------------------- /src/lucky_record/errors.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/errors.cr -------------------------------------------------------------------------------- /src/lucky_record/field.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/field.cr -------------------------------------------------------------------------------- /src/lucky_record/fillable_field.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/fillable_field.cr -------------------------------------------------------------------------------- /src/lucky_record/form.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/form.cr -------------------------------------------------------------------------------- /src/lucky_record/insert.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/insert.cr -------------------------------------------------------------------------------- /src/lucky_record/join.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/join.cr -------------------------------------------------------------------------------- /src/lucky_record/mark_as_failed.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/mark_as_failed.cr -------------------------------------------------------------------------------- /src/lucky_record/migrator/alter_table_statement.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/migrator/alter_table_statement.cr -------------------------------------------------------------------------------- /src/lucky_record/migrator/change_null_statement.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/migrator/change_null_statement.cr -------------------------------------------------------------------------------- /src/lucky_record/migrator/column_default_helpers.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/migrator/column_default_helpers.cr -------------------------------------------------------------------------------- /src/lucky_record/migrator/column_type_option_helpers.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/migrator/column_type_option_helpers.cr -------------------------------------------------------------------------------- /src/lucky_record/migrator/create_foreign_key_statement.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/migrator/create_foreign_key_statement.cr -------------------------------------------------------------------------------- /src/lucky_record/migrator/create_index_statement.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/migrator/create_index_statement.cr -------------------------------------------------------------------------------- /src/lucky_record/migrator/create_table_statement.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/migrator/create_table_statement.cr -------------------------------------------------------------------------------- /src/lucky_record/migrator/drop_index_statement.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/migrator/drop_index_statement.cr -------------------------------------------------------------------------------- /src/lucky_record/migrator/drop_table_statement.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/migrator/drop_table_statement.cr -------------------------------------------------------------------------------- /src/lucky_record/migrator/index_statement_helpers.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/migrator/index_statement_helpers.cr -------------------------------------------------------------------------------- /src/lucky_record/migrator/migration.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/migrator/migration.cr -------------------------------------------------------------------------------- /src/lucky_record/migrator/migrator.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/migrator/migrator.cr -------------------------------------------------------------------------------- /src/lucky_record/migrator/primary_key_type.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/migrator/primary_key_type.cr -------------------------------------------------------------------------------- /src/lucky_record/migrator/references_helper.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/migrator/references_helper.cr -------------------------------------------------------------------------------- /src/lucky_record/migrator/runner.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/migrator/runner.cr -------------------------------------------------------------------------------- /src/lucky_record/migrator/statement_helpers.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/migrator/statement_helpers.cr -------------------------------------------------------------------------------- /src/lucky_record/model.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/model.cr -------------------------------------------------------------------------------- /src/lucky_record/needy_initializer_and_save_methods.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/needy_initializer_and_save_methods.cr -------------------------------------------------------------------------------- /src/lucky_record/nested_form.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/nested_form.cr -------------------------------------------------------------------------------- /src/lucky_record/paramable.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/paramable.cr -------------------------------------------------------------------------------- /src/lucky_record/params.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/params.cr -------------------------------------------------------------------------------- /src/lucky_record/postgres_url.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/postgres_url.cr -------------------------------------------------------------------------------- /src/lucky_record/primary_key_type.cr: -------------------------------------------------------------------------------- 1 | enum LuckyRecord::PrimaryKeyType 2 | Serial 3 | UUID 4 | end 5 | -------------------------------------------------------------------------------- /src/lucky_record/query.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/query.cr -------------------------------------------------------------------------------- /src/lucky_record/query_builder.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/query_builder.cr -------------------------------------------------------------------------------- /src/lucky_record/queryable.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/queryable.cr -------------------------------------------------------------------------------- /src/lucky_record/repo.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/repo.cr -------------------------------------------------------------------------------- /src/lucky_record/schema_enforcer.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/schema_enforcer.cr -------------------------------------------------------------------------------- /src/lucky_record/tasks/db/create.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/tasks/db/create.cr -------------------------------------------------------------------------------- /src/lucky_record/tasks/db/drop.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/tasks/db/drop.cr -------------------------------------------------------------------------------- /src/lucky_record/tasks/db/migrate.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/tasks/db/migrate.cr -------------------------------------------------------------------------------- /src/lucky_record/tasks/db/migrate_one.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/tasks/db/migrate_one.cr -------------------------------------------------------------------------------- /src/lucky_record/tasks/db/redo.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/tasks/db/redo.cr -------------------------------------------------------------------------------- /src/lucky_record/tasks/db/rollback.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/tasks/db/rollback.cr -------------------------------------------------------------------------------- /src/lucky_record/tasks/db/rollback_all.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/tasks/db/rollback_all.cr -------------------------------------------------------------------------------- /src/lucky_record/tasks/gen/migration.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/tasks/gen/migration.cr -------------------------------------------------------------------------------- /src/lucky_record/tasks/gen/migration.ecr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/tasks/gen/migration.ecr -------------------------------------------------------------------------------- /src/lucky_record/type.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/type.cr -------------------------------------------------------------------------------- /src/lucky_record/validations.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/validations.cr -------------------------------------------------------------------------------- /src/lucky_record/validations/callable_error_message.cr: -------------------------------------------------------------------------------- 1 | module LuckyRecord::CallableErrorMessage 2 | abstract def call(name, value) 3 | end 4 | -------------------------------------------------------------------------------- /src/lucky_record/version.cr: -------------------------------------------------------------------------------- 1 | module LuckyRecord 2 | VERSION = "0.7.0" 3 | end 4 | -------------------------------------------------------------------------------- /src/lucky_record/virtual.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/virtual.cr -------------------------------------------------------------------------------- /src/lucky_record/virtual_form.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/virtual_form.cr -------------------------------------------------------------------------------- /src/lucky_record/where.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/lucky_record/where.cr -------------------------------------------------------------------------------- /src/precompiled_tasks/gen/migration.cr: -------------------------------------------------------------------------------- 1 | require "../../lucky_record" 2 | 3 | Gen::Migration.new.call 4 | -------------------------------------------------------------------------------- /src/run_macros/infer_table_name.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/src/run_macros/infer_table_name.cr -------------------------------------------------------------------------------- /tasks.cr: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/luckyframework/lucky_record/HEAD/tasks.cr --------------------------------------------------------------------------------