crecto
crecto copied to clipboard
Database wrapper and ORM for Crystal, inspired by Ecto
I have become extremely busy the last year or so, and I just dont have the time to commit to the Crecto community any more. Crecto currently doesn't work with...
- actually test transaction operations (was using `Repo` instead of `tx` inside `transaction!` block - streamline CUD methods - add all read methods to `LiveTransaction` I noticed the using `Repo.all`...
I'm beginning to discover `crecto` and am having some difficulty using it. In particular, I stumble on the following problem: how to insert an instance of each data model, in...
In all my schema, I use non-standard id names. A many to many relationship with a through association fails when preloading with an all query.
name: crecto version: 0.11.2
cast to db before save and cast to user after read
Hello, I can't find a way to define an enum with Crecto. PostgreSQL type: ```sql CREATE TYPE enum_lang AS ENUM('en', 'fr'); ``` The column: ```ruby enum_field :enum_lang, Langs, column_name: "lang",...
Pull request for issue #237 . This implements the validate_required for empty_strings - so when an empty string is used for an attribute that is required it will fail the...
I wanted to check if this is intended or not. I'm happy to try and put together a pull request if you'd like this implemented. At the moment `validate_required` returns...