Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

CyrexEnterprise/abstr-dbi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

abstr-dbi

Database independent interface

Screenshot


Example of use with the MongoDB driver

const DBI = require('abstr-dbi')
const dbi = DBI({ driver: 'mongodb' })

const database = 'mongodb://localhost:27017/abstr_dbi_test'

console.log(`Connecting to ${database}...`)
dbi.connect({connectionParams:database})
    .then(() => {
        console.log(`Connected to database successfully! Engine [ ${dbi.EngineType} ]`)
    })
    .catch((err) => {
        console.log('Failed to connect database', err.stack)
    })

About

Database independent interface

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published