joseph.db
Version:
SQLite DataBase structure
33 lines (27 loc) • 666 B
Markdown
```js
// ES6 Import
import DataBase from 'joseph.db';
// Node module Import
const Database = require('joseph.db');
```
```js
Database(dataName, dataKey, options);
```
```js
const myData = Database('settings', 'language', {
defaultData: 'English', // Default data
autoCheck: true, // Set the data when there is no data
});
```
```js
myData.set(newData); // Setting the data.
myData.get(); // Get the data in the key.
myData.has(); // There are data in the key.
myData.clear(); // Set the data to default data.
myData.delete(); // Delete the data in the key.
```