Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@jakub.knejzlik/ts-query

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jakub.knejzlik/ts-query

TypeScript implementation of SQL builder

Source
npmnpm
Version
0.12.0
Version published
Weekly downloads
13K
3.29%
Maintainers
1
Weekly downloads
 
Created
Source

@jakub.knejzlik/ts-query

GitHub Pages

TypeScript implementation of an SQL builder. It provides a fluent API to build SQL queries in a type-safe manner.

Installation

Install the package using npm:

npm add @jakub.knejzlik/ts-query

Usage

Import the necessary classes and functions from the package:

import { Q } from "@jakub.knejzlik/ts-query";

Create an instance of the Query class and use its methods to build your SQL query:

const query = new Query();
Q.select().from("users");
console.log(query.toSQL(Q.flavors.mysql));

Documentation

For more detailed usage instructions and API documentation, visit the Github pages.

Testing

Run the test suite using the test script:

npm run test

Contributing

Contributions are welcome. Please submit a pull request or create an issue on the Github repository.

License

This project is licensed under the MIT License.

Keywords

sql

FAQs

Package last updated on 15 Sep 2025

Did you know?

Socket

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.

Install

Related posts