0.0.1 • Published 2 years ago

square.db v0.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Nasıl yüklenir ? | How to download ?

npm i square.db

Nasıl kullanılır ? | How to use ?

JS

    const JsonDatabase = require('square.db')
    import JsonDatabase from "square.db"

    const db = new JsonDatabase({
        path: './database'
    })

    // Set | Get 

    db.set('key', 'value')
    db.get('key')
    db.fetch('key')

    // Delete

    db.delete('key')
    db.deleteAll()
    db.clear()

    // Exists

    db.has('key')
    db.exists('key')

    // Get all data

    db.all()
    db.showAll()

    // To JSON

    db.toJSON()

    // Arrays

    db.push('key', 'value')
    db.pull('key', 'value')

    db.keyArray()
    db.valueArray()

    // Data type

    db.dataType('key')

    // Math methods

    db.add('key', value)
    db.substr('key', value)

    // Finding methods

    db.startsWith('searchString')
    db.endsWith('searchString')

    // Destroy database file method

    db.destroy()
    db.unlink()
    

Sürüm: 1.0.1

Bugları discord üzerinden bildir: Berat!#6167

0.0.1

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago