
Security News
Official Go SDK for MCP in Development, Stable Release Expected in August
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
typesql-cli
Advanced tools
Obs.: This is a WIP experimental project.
Typesql: Generate type safe code for mysql database.
Having the following query in select-products.sql
file.
SELECT
id,
product_name,
list_price
FROM products
WHERE discontinued = 0
AND list_price > :minPrice
AND list_price < :maxPrice
TypeSql will generate the types and function in the file select-products.ts
.
Then you can import the generate code and execute as following:
deno syntax:
sqls\
select-products.sql
insert-product.sql
update-product.sql
Then run npx typesql-cli -w -t=deno -d mysql://root:password@localhost/mydb .\sqls
to start typesql in watch mode and generate code targeting the deno runtime.
After that you will have one Typescript file for each query file.
sqls\
select-products.sql
select-products.ts
insert-product.sql
insert-product.ts
update-product.sql
update-product.ts
const products = await selectProducts(...
const updateResult = await updateProduct(...
FAQs
**TypeSQL** generates typesafe Typescript APIs from your SQL statements. Write your queries in raw SQL and TypeSQL generates the type-safe APIs to execute those queries.
The npm package typesql-cli receives a total of 103 weekly downloads. As such, typesql-cli popularity was classified as not popular.
We found that typesql-cli demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.
Security News
New research reveals that LLMs often fake understanding, passing benchmarks but failing to apply concepts or stay internally consistent.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.