nicholasmordecai / node-mysql-util

A series of utility functions for MySQL Node.js (not an orm)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TODO:

NPM badge

CircleCI

Test Badge Coverage Badge

import { selectOne } from 'mysql-utils';

const query: string = 'SELECT * FROM table WHERE row1 = ? AND row2 = ?';
const params: string[] = ['param1', 'anotherParam];

const result = await selectOne(query, params);

About

A series of utility functions for MySQL Node.js (not an orm)


Languages

Language:TypeScript 100.0%