Readit News logoReadit News
Posted by u/grandimam a year ago
Show HN: TypeQuery – SQL query builder library built with TypeScriptgithub.com/grandimam/type...
Description:

I’ve recently built a TypeScript SQL query builder library called TypeQuery and I’m looking for feedback from the community. TypeQuery is designed to help TypeScript developers construct SQL queries in a type-safe and intuitive way, with support for common SQL operations like SELECT, INSERT, UPDATE, and DELETEI’ve recently built a TypeScript SQL query builder library called TypeQuery and I’m looking for feedback from the community. TypeQuery is designed to help TypeScript developers construct SQL queries in a type-safe and intuitive way, with support for common SQL operations like SELECT, INSERT, UPDATE, and DELETE.

Key Features of TypeQuery:

- Type-safe SQL Queries: Build SQL queries with TypeScript’s powerful type system.

- Supports Common SQL Operations: SELECT, INSERT, UPDATE, and DELETE.

- Dynamic WHERE Clauses: Easily create complex WHERE clauses with a Django-like approach.

- SQL Parameterization: Avoid SQL injection risks with parameterized queries.

- Works with Multiple Databases: Compatible with MySQL, PostgreSQL, and SQLite.

I would love to hear your thoughts on:

- Usability: Does the API feel intuitive to use? Are there any features you think could make it easier to work with?

- Performance: How does the performance compare to other query builders or raw SQL?

- Missing Features: What do you feel might be missing in this library? Are there any features you'd expect from a SQL query builder?

- General Opinion: Would you find a library like this useful for your projects?

You can check it out on GitHub: https://github.com/grandimam/typequery. If you like this project, please give it a to show your support and help others find it!

Looking forward to hearing your thoughts, suggestions, and feedback!

aleclarsoniv · a year ago
I think it'd be worth looking at what's already out there before you put a lot of effort into this, unless of course this is merely for fun/learning.