crystal-sql-querymaker

🔑 Helper functions for SQL query generation like Perl's SQL::QueryMaker

SQL-QueryMaker Build Status

Helper functions for SQL query generation like Perl's SQL::QueryMaker

Installation

Add this to your application's shard.yml:

dependencies:
  sql-maker:
    github: pine/crystal-sql-maker
    branch: master

Usage

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 Pine Mizune - creator, maintainer
Repository

crystal-sql-querymaker

Owner
Statistic
  • 1
  • 0
  • 0
  • 0
  • 1
  • over 8 years ago
  • May 30, 2016
License

MIT License

Links
Synced at

Thu, 21 Nov 2024 21:36:44 GMT

Languages