astpod.db

1.0.0 • Public • Published

Author: Astpod

astpod.db

const db = require('astpod.db');

// Setting an object in the database:
db.yaz('userInfo', { difficulty: 'Easy' })
// -> { difficulty: 'Easy' }

// Adding to a number (that doesn't exist yet) in an object:
db.topla('userInfo.balance', 500)
// -> { difficulty: 'Easy', items: ['Sword'], balance: 500 }

db.topla('userInfo.balance', 500)
// -> { difficulty: 'Easy', items: ['Sword', 'Watch'], balance: 1000 }

//Database extraction
db.çıkar('userInfo.balance', 500)

// Fetching individual properties
db.bul('userInfo.balance') // -> 1000
db.bul('userInfo.items') // ['Sword', 'Watch']

//Database clear
db.sıfırla('userInfo.balance')

//Database delete
db.sil('userInfo.balance')

/astpod.db/

    Package Sidebar

    Install

    npm i astpod.db

    Weekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    3.79 kB

    Total Files

    4

    Last publish

    Collaborators

    • astpod