Socket
Socket
Sign inDemoInstall

csy.db

Package Overview
Dependencies
178
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    csy.db

csy.db Databases Advanced features #Every Time forever forward


Version published
Weekly downloads
57
increased by1040%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Discord

csy.db

Examples:

// Data Set | Get | Add
db.set("KEY", "DATA"); // Change Data And Result Data
db.get("KEY"); // Result Data
db.add("KEY"); // Change Data And Result Data
db.fetch("KEY"); // Result Data
db.push("KEY.KEY", "data"); // Push Datas Json or Array

// Data All

db.all("OPTIONAL MAX DATAS NUMBER"); // All Datas

// Data exists

db.has("KEY"); // True/False

// Data Count

db.size(); // All Data Length

// Created Notification
db.on("create", (datas) => {
    console.log(`Created Data Name: "${datas.key}", Value: "${datas.value}"`);
});

// Updated Notification
db.on("update", (datas) => {
    console.log(`Updated Data Name: "${datas.key}", Last Value: "${datas.last}", New Value: "${datas.new}"`);
});

// Deleted Notification
db.on("delete", (datas) => {
    console.log(`Deleted Data Name: "${datas.key}", Value: "${datas.value}"`);
});

csy.db SERVER

const csydb = require("csy.db");
const db = new csydb.server("URL", "password"); // ({SERVERURL}, {SERVERPASS})

let data = await db.set("firstdata", 15);
let getdata = await db.get("firstdata");

// For More Help Join My Server

Main Data

const db = require("csy.db");

Multiple Data

const csydb = require("csy.db");
const db = new csydb.create("datas.json", 0); // ({PATH}, {MAXDATALIMIT})

Encrypted Data Protection

const csydb = require("csy.db");
const db = new csydb.cipher("datas.json", 0, "SECRET_KEY"); // ({PATH}, {MAXDATALIMIT}, {SECRETKEY})

// All Datas Encrypt

db.encryptAll();

// All Datas Decrypt

db.decryptAll();

Mongodb Shortcut

const csydb = require("csy.db");
const db = new csydb.mongodb("URL"); // ({MONGOURL})

let data = await db.set("firstdata", 15);
let getdata = await db.get("firstdata");

For Support Join Server: https://discord.gg/gkmwaAZQBu

Keywords

FAQs

Last updated on 22 Apr 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc