Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
SqlConditionBuilder =================== Build AR conditions easily. Example ======= builder = SqlConditionBuilder.new @builder.add_condition "foo IS NULL" @builder.add_condition "(bar = ? OR bar = ?)", 10, 20 @builder.baz = "something" @builder.to_a #=> ["foo IS NULL AND (bar = ? OR bar = ?) AND baz = ?", 10, 20, "something"] @builder.to_sql #=> "foo IS NULL AND (bar = 10 OR bar = 20) AND baz = 'something'" Copyright (c) 2009 Scott Taylor / smtlaissezfaire <firstname.lastname@example.org>, released under the MIT license