Skip to content

duke7able/SQL-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SQL-wrapper

just a basic wrapper to do CRUD operation

to start

import the connection file in index.js of node server and assign it to global.pool Ex: const createPool = require('./connection') . . . global.pool = createPool()

to user transaction

Ex: const TransactionCRUD = require('./transaction') . . . const transaction = new TransactionCRUD() transaction.connection = await transaction.init() // then do the methods

Releases

No releases published

Packages

No packages published