How to use the dbms.init function in dbms

To help you get started, we’ve selected a few dbms examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github totaljs / openplatform / definitions / openplatform.js View on Github external
// DB
require('dbms').init(CONF.database, null, ERROR('DBMS'));

// Constants
const Fs = require('fs');
const DB_ONLINE = { online: true };
const DB_OFFLINE = { online: false };
const DB_LOGGED = { online: true };
const DDOS_MAX_ATTEMPS = 10;

var OTP = {};
var OTPCOUNT = 0;
var SIMPLECACHE = {};
var DDOS = {};

MAIN.id = 0;                   // Current ID of OpenPlatform
MAIN.version = 4400;           // Current version of OpenPlatform
// MAIN.guest                  // Contains a guest user instance
github totaljs / openplatform / definitions / database-pg-bk.js View on Github external
require('dbms').init(CONF.database, null, ERROR('DBMS'));

const Fs = require('fs');

FUNC.apps = {};
FUNC.users = {};
FUNC.settings = {};
FUNC.notifications = {};
FUNC.files = {};
FUNC.badges = {};
FUNC.configs = {};

// ====================================
// Users
// ====================================

var MODEL_FAVORITE = {};
github totaljs / openplatform / definitions / database-mongodb-bk.js View on Github external
const Fs = require('fs');
require('dbms').init(CONF.database);

FUNC.apps = {};
FUNC.users = {};
FUNC.sessions = {};
FUNC.common = {};
FUNC.settings = {};
FUNC.notifications = {};
FUNC.files = {};
FUNC.badges = {};
FUNC.configs = {};

// ====================================
// Users
// ====================================

FUNC.users.set = function(user, fields, callback, app) {
github totaljs / examples / postgresql / definitions / postgresql.js View on Github external
require('dbms').init(CONF.database, ERROR('DBMS'));

dbms

Database Management System

MIT
Latest version published 2 months ago

Package Health Score

65 / 100
Full package analysis