sql
Version, currently master branch1 version
- master branchlatestDec 27, 2017
github.com/f-mer/sql
๐ Build sql queries programmatically.
2 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
sql:
github: f-mer/sql
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.24.1- License
- MIT
- Author
- Fabian Mersch
Dependencies
This version declares no dependencies.
README
Usage
Crystal code
require "sql"
users = SQL::Table.new("users")
articles = SQL::Table.new("articles")
query = users
.where(users["name"].qualify.eq("Tom"))
.join(articles, users["id"].qualify.eq(articles["user_id"].qualify))
query.to_sql
Generated SQL
SELECT * FROM `users` INNER JOIN `articles` ON `users`.`id` = `articles`.`user_id` WHERE `users`.`name` = 'Tom'
Installation
Add this to your application's shard.yml:
dependencies:
sql:
github: f-mer/sql
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
- Dec 27, 2017
- Crystal
0.24.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/f-mer/sql
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1