
Product
Rust Support Now in Beta
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
A library for building raw SQL queries more maintainably and with fewer mistakes.
None to be prepared
CommandBuilder.Init()
. Then write your query as your needs..Build()
.Build()
have return of IQueryCommandResult
, which have two properties Script
and Parameters
Script
is raw sql queryParameters
is sets of name and value bind parameters to query.Select(string tableName, string[] columns)
used to construct initial statement as select statement with initial columns to selectSelect(string[] columns)
used to add additional field to select within statementExample
CommandBuilder.Init().Select("category", new string[] { "name", "category_id" }).Build()
This will produce raw query
SELECT name, category_id FROM category
You can construct insert statement and specify sets of column and value to insert to specific table
CommandBuilder.Init().Insert("category", new Dictionary<string, object?>()
{
{ "name", "Karya Ilmiah" }
}).Build();
This will produce raw query
INSERT INTO category(name) VALUES(@name)
And the binding parameters will available in IQueryCommandResult.Parameters
that contains key value pair of @name
dan Karya Ilmiah
FAQs
Unknown package
We found that sqlcommandbuilder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.