https://github.com/pine/crystal-sql-querymaker
:key: Helper functions for SQL query generation like Perl's SQL::QueryMaker
https://github.com/pine/crystal-sql-querymaker
Last synced: 7 months ago
JSON representation
:key: Helper functions for SQL query generation like Perl's SQL::QueryMaker
- Host: GitHub
- URL: https://github.com/pine/crystal-sql-querymaker
- Owner: pine
- License: mit
- Created: 2016-05-30T13:26:54.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-11T10:56:33.000Z (over 9 years ago)
- Last Synced: 2025-01-13T03:13:58.309Z (about 1 year ago)
- Language: Crystal
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SQL-QueryMaker [](https://travis-ci.org/pine/crystal-sql-querymaker)
Helper functions for SQL query generation like Perl's [SQL::QueryMaker](https://github.com/kazuho/SQL-QueryMaker)
## Installation
Add this to your application's shard.yml:
```yaml
dependencies:
sql-maker:
github: pine/crystal-sql-maker
branch: master
```
## Usage
```crystal
require "sql-maker"
include SQL::Maker::Helper
q = sql_eq("foo", 10)
p q.as_sql #=> "`foo` = ?"
p q.bind #=> [10]
```
## Contributing
1. Fork it ( https://github.com/pine/crystal-sql-maker/fork )
2. Create your feature branch (git checkout -b my-new-feature)
3. Commit your changes (git commit -am 'Add some feature')
4. Push to the branch (git push origin my-new-feature)
5. Create a new Pull Request
## Contributors
- [pine](https://github.com/pine) Pine Mizune - creator, maintainer