1.0.52 • Published 2 years ago
icorm v1.0.52
This ORM Works only for iCOne Systems. PLease, use Total.js Version for free.
Node Database Management System (ORM)
- Documentation
- Website
- Documentation
- Chat support
- Join Total.js Telegram
- Support
- supports
PostgreSQL
,MySQL
, Total.jsTextDB
and part ofMongoDB
Initialization
- installation
$ npm install dbms
- install MySQL:$ npm install mysql2
- install PostgreSQL:$ npm install pg
- install MongoDB:$ npm install mongodb
const dbms = require('dbms');
dbms.init([alias], connection_string);
// @alias {String} Optional, alias for connection string (default: 'default')
// @connection_string {String} A connection string to DB
// PostgreSQL
dbms.init('postgresql://user:pass@localhost:5432/dbname');
dbms.init('mypg', 'postgresql://user:pass@localhost:5432/dbname'); // with a name for more DB engines
// MySQL & Maria DB
dbms.init('mysql://user:pass@localhost:3306/dbname');
dbms.init('mysql', 'mysql://user:pass@localhost:3306/dbname'); // with a name for more DB engines
// Total.js NoSQL embedded
dbms.init('nosql');
dbms.init('mynosql', 'nosql'); // with a name for more DB engines
// Total.js Table
dbms.init('table');
dbms.init('mytable', 'nosql'); // with a name for more DB engines
Usage
// Is a global method
var db = DBMS();
// Finds records
// A response: Array
// returns QueryBuilder
db.find('collection_table_name');
db.find('mypg/collection_table_name');
db.find('mynosql/collection_table_name');
db.find('mytable/collection_table_name');
// Finds the one record
// A response: Object
// returns QueryBuilder
db.one('collection_table_name');
db.one('mypg/collection_table_name');
db.one('mynosql/collection_table_name');
db.one('mytable/collection_table_name');
// Inserts a new record
// A response: Number
// returns QueryBuilder
db.insert('collection_table_name', document, [unique]);
db.insert('mypg/collection_table_name', document, [unique]);
db.insert('mynosql/collection_table_name', document, [unique]);
db.insert('mytable/collection_table_name', document, [unique]);
Contact
1.0.44
2 years ago
1.0.43
2 years ago
1.0.48
2 years ago
1.0.47
2 years ago
1.0.46
2 years ago
1.0.45
2 years ago
1.0.50
2 years ago
1.0.52
2 years ago
1.0.19
2 years ago
1.0.18
2 years ago
1.0.39
2 years ago
1.0.17
2 years ago
1.0.38
2 years ago
1.0.16
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.4
2 years ago
1.0.40
2 years ago
1.0.22
2 years ago
1.0.21
2 years ago
1.0.42
2 years ago
1.0.20
2 years ago
1.0.41
2 years ago
1.0.26
2 years ago
1.0.25
2 years ago
1.0.24
2 years ago
1.0.23
2 years ago
1.0.29
2 years ago
1.0.28
2 years ago
1.0.27
2 years ago
1.0.33
2 years ago
1.0.11
2 years ago
1.0.32
2 years ago
1.0.10
2 years ago
1.0.31
2 years ago
1.0.30
2 years ago
1.0.37
2 years ago
1.0.15
2 years ago
1.0.36
2 years ago
1.0.14
2 years ago
1.0.35
2 years ago
1.0.13
2 years ago
1.0.34
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago