Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Builder of CQL 3 (Cassandra Query Language) statements in OOP style.
require "query_builder"
include QueryBuilder::CQL::Operators # for operators like cql_gt, cql_lte below.
table = QueryBuilder::CQL.keyspace(:auth).table(:users)
statement = table
.select(:id, :role)
.select(name: :user)
.where(id: cql_gt(1))
.where(id: cql_lte(4))
.using(consistency: :quorum)
.limit(3)
# => #<QueryBuilder::CQL::Statements::Select ...>
statement.to_s
# => "SELECT id, role, user AS name FROM auth.users WHERE id > 1 AND id <= 4 USING consistency = 'quorum' LIMIT 3;"
See the list of all supported contexts, statements and operators.
The gem doesn't depend on any specific Cassandra driver. It could be used to extend official Datastax driver with features of CQL building.
It doesn't validate CQL statements, leaving this to either driver or Cassandra database.
Add this line to your application's Gemfile:
# Gemfile
gem "query_builder"
Then execute:
bundle
Or add it manually:
gem install query_builder
Tested under rubies compatible to MRI 1.9.3+.
Uses RSpec 3.0+ for testing and hexx-suit for dev/test tools collection.
git checkout -b my-new-feature
)git commit -am '[UPDATE] Add some feature'
)git push origin my-new-feature
)See the MIT LICENSE.
FAQs
Unknown package
We found that query_builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.