feat(auth): implement user authentication system
This commit is contained in:
parent
4847ab793a
commit
25cea4fbe8
12051 changed files with 1462377 additions and 0 deletions
27
backend/node_modules/named-placeholders/README.md
generated
vendored
Normal file
27
backend/node_modules/named-placeholders/README.md
generated
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
[](https://nodei.co/npm/named-placeholders/)
|
||||
|
||||
[](https://github.com/mysqljs/named-placeholders/actions/workflows/ci.yml)
|
||||
|
||||
# named-placeholders
|
||||
|
||||
compiles "select foo where foo.id = :bar and foo.baz < :baz" into "select foo where foo.id = ? and foo.baz < ?" + ["bar", "baz"]
|
||||
|
||||
## usage
|
||||
|
||||
```sh
|
||||
npm install named-placeholders
|
||||
```
|
||||
|
||||
see [this mysql2 discussion](https://github.com/sidorares/node-mysql2/issues/117)
|
||||
|
||||
```js
|
||||
var mysql = require('mysql');
|
||||
var toUnnamed = require('named-placeholders')();
|
||||
|
||||
var q = toUnnamed('select 1+:test', { test: 123 });
|
||||
mysql.createConnection().query(q[0], q[1]);
|
||||
```
|
||||
|
||||
## credits
|
||||
|
||||
parser is based on @mscdex code of his excellent [node-mariasql](https://github.com/mscdex/node-mariasql) library
|
||||
Loading…
Add table
Add a link
Reference in a new issue