sql
sql copied to clipboard
A delightful SQL ORM ☺️
Updates DB shard dependencies (db, crystal-pg, sqlite3) to their current versions Closes #110
The current version of Onyx doesn't work with the current version of Crystal's `db` shard, requiring db version 0.6.0 to work. This means both an outdated db package, and an...
Inspired by https://knexjs.org/
TIL you can define the same annotation multiple times. This allows to define, for example, `JSON::Field` annotation without actually requiring `"json"`! Therefore I could put serialization-related annotations right into the...
I'm trying to query a `User` and its `groups`. This generates an invalid SQL Query: ```SQL SELECT * FROM users INNER JOIN groups AS groups ON groups.id IN users.group_ids ```...
Not sure whether this is the best way to do it. I added these so that I could write something like the following in a base model: ```crystal module Models::Base...
* [ ] Allow compound primary keys * [ ] Allow primary key absence in a model