Quartz
Version, currently master branch1 version
- master branchlatestJun 15, 2026
github.com/yutsuna/quartz
ORM in Crystal
0 stars
1 dependent
License: MIT
Installation
# Add this to your shard.yml
dependencies:
Quartz:
github: yutsuna/quartz
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
>= 1.20.2- License
- MIT
- Author
- Yutsuna
- Target
Quartzfrom Source/Quartz.cr
Dependencies
Runtime Dependencies
README
Quartz
Quartz is a Crystal ORM built around three goals: a compact model DSL, REPL-safe macros, and a storage layer that can be swapped without changing the model API.
Documentation
Quick start
require "./Source/Quartz"
class Author < Quartz::AModel
field name : String
has_many books : Book
end
class Book < Quartz::AModel
field title : String = ""
belongs_to author : Author
validates title, presence: true
before_save { self.title = title.strip }
timestamps
end
author = Author.objects.create(name: "Léo")
book = Book.objects.create(title: " Crystal in Practice ", author_id: author.id)
puts book.inspect
puts book.author
puts author.books
puts Book.objects
.filter { |item| item.author_id == author.id }
.order_by { |item| item.title }
.to_a
Installation
git clone https://github.com/Yutsuna/Quartz.git
cd Quartz
shards install
Quartz targets Crystal >= 1.20.2.
Build and test
We recommand you to use Krystal to build and test Quartz.
Krystal is a crystal compiler wrapper for big projects, really faster than crystal build.
krystal
krystal --force
krystal --release
krystal --spec
Project layout
Source/
Quartz.cr
Quartz/
Models/
Query/
Adapters/
Errors/
Spec/
Doc/
Contributing
- Fork the repository.
- Create a feature branch.
- Commit your changes.
- Push the branch.
- Open a pull request.
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Jun 15, 2026
- Crystal
>= 1.20.2- Indexed
- yes
Dependents
Repository
github.com/yutsuna/quartz
Metadata
- Created
- Aug 19, 2026
- Updated
- Nov 7, 2026
- Synced
- Nov 7, 2026
- Versions
- 1