dh-dbutilities

1.0.4 • Public • Published

Database Utilities

Configuration Options

// get the settings options from the config module.
let options = {
  adapterName: String,
  server: String,
  port: String,
  dbName: String,
  username: String,
  password: String,
  connectionPoolLimit: Number,
  sessionTableName: String,
  sessionSecret: String
  
  // MS SQL specific
  instanceName: String,
  sessionDatabaseName: String,
  ssl: Object or String. See node-mysql for object specs on this.
  
  // MySQL specific
  multipleStatements: Boolean
};

Session Store Setup

MS SQL Server Setup:

CREATE TABLE [dbo].[sessions](
    [sid] [varchar](255) NOT NULL PRIMARY KEY,
    [session] [varchar](max) NOT NULL,
    [expires] [datetime] NOT NULL
)

MySQL Setup:

No setup required.

Readme

Keywords

none

Package Sidebar

Install

npm i dh-dbutilities

Weekly Downloads

44

Version

1.0.4

License

(MIT OR Apache-2.0)

Unpacked Size

49.7 kB

Total Files

11

Last publish

Collaborators

  • uranakam