A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ForbesLindesay/atdatabases below:

ForbesLindesay/atdatabases: TypeScript clients for databases that prevent SQL Injection

Using tagged template literals for queries, e.g.

db.query(sql`SELECT * FROM users WHERE id=${userID}`);

makes it virtually impossible for SQL Injection attacks to slip in un-noticed. All the @databases libraries enforce the use of the sql tagged template literals, so you can't accidentally miss them.

The query is then passed to your database engine as a separate string and values:

{text: 'SELECT * FROM users WHERE id=?', values: [userID]}

All the @databases APIs are designed with promises in mind from the get go.

Written in TypeScript, so every module has type safety and type definitions built in.

Each database driver is published to npm as a separate module, so you don't need to install the ones you don't need.

Check out the website to learn more: https://www.atdatabases.org/


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4