granite icon indicating copy to clipboard operation
granite copied to clipboard

ORM Model with Adapters for mysql, pg, sqlite in the Crystal Language.

Results 66 granite issues
Sort by recently updated
recently updated
newest added

Greetings 👋 Submitting this small PR as I recently ran into an issue when using `import` for a model. If I created the model one-off and used `.new` (add attribute...

kind:bug

Granite remains one of the first landing places for new developers coming into crystal. It was a busy project for some time and has a wealth of technical implementation for...

status:discussion

Hello, It looks like the last release of Crystal officially supported is 0.34. I am using it on 0.35.1 but I am unable to upgrade to Crystal 1.30. What needs...

Preface: This is still a WIP and are a few things left to do. However I wanted to make the draft to start to discuss how we expect this to...

pr:wip
status:discussion
kind:breaking-change

My fork has been getting a bit ahead so i wanted to open a PR with my working branch. This includes the following bug fixes: * fix allowing enum columns...

If a column is named `created_at` or `updated_at` is not a type `Time?`, then the following occurs: ```There was a problem expanding macro 'macro_4801706624' Code in lib/granite/src/granite/transactions.cr:82:5 82 | {%...

Checking for existing records where column type is `bool` if you search with criteria where the column is `false` it will query it as `is NULL` instead of `is false`....

I love active_record in ruby, and I extend it like this ``` class Granite::Query::Builder(Model) private getter adapter : Granite::Adapter::Base = Model.adapter def update_all(**attributes) return if attributes.empty? assemble = self.assembler params...

kind:feature
AR Feature Parity

I have a model with the column name `phone1` from an old rails app. When I added `column phone1 : String? = ""` All columns are set to the default...

kind:bug
status:help-wanted

Hi I try to do a has_many through relationship, like this: ```crystal class User < Granite::Base .... has_many albums : Album has_many :photos, class_name: Photo, through: :albums end ``` and...