Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

n3rthusdb

Package Overview
Dependencies
Maintainers
2
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

n3rthusdb

database modülü

  • 0.0.9
  • unpublished
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

n3rthusdb

TÜRK YAPIMI DATABASE MODÜLÜ

İndirmek İçin

npm install --save n3rthusdb

Yeni Güncelleme 0.0.9

db.all() = db.hepsi() => Eklendi!

====> OLD EXAMPLE

const { Database } = require("n3rthusdb")
const db = new Database("database")

====> NEW EXAMPLE

const { Database } = require("n3rthusdb")
const n3rthusDB = {
    "file": "database",
    "autoFile": true,
};
const db = new Database(n3rthusDB)

Hatalar Düzeltildi!

Örnek Kodlar

//Dil = Türkçe
db.yaz("veri","belirti") /* database veri yazar */
db.kont('veri') /* Belirtilen Veriyi Kontrol Eder */
db.bul("veri") /* Belirtilen veriyi Bulur */
db.sil("veri") /* database'den sil */
db.yaz("puan",10) /* database veri yazar */
db.topla("puan",1) /* Belirtilen verinin numarasını Belirtilen Sayı İle Toplar */
db.çıkar("puan",1) /* Belirtilen verinin numarasını Belirtilen Sayı İle Çıkartır */
db.hepsi() /* Database Dosyasındaki Verileri Gösterir */
db.sıfırla() /* Databasei Sıfırlar */
//language = English
db.has('n3rthus') /* Checks Specified Data */
db.get("data") /* Finds the specified data */
db.set("data","symptom") /* database writes data */
db.delete("data") /* delete from database */
db.backup("data") /* backs up the file with the specified name */
db.add("xp",1) /* Adds the number of the specified data with the specified number */
db.remove("xp",1) /* Subtracts the number of the specified data with the specified number */
db.all() /* Shows Data in Database File */
db.deleteall() /* Database Reset */

YAZDIRMA KODU

const { Database } = require("n3rthusdb")
const n3rthusDB = {
    "file": "database",
    "autoFile": true,
};
const db = new Database(n3rthusDB)
db.yaz("Mesaj",`örnek`) /* database'den bul */
console.log(db.bul("Mesaj"))
// KONSOL => örnek

SİLME KODU

const { Database } = require("n3rthusdb")
const n3rthusDB = {
    "file": "database",
    "autoFile": true,
};
const db = new Database(n3rthusDB)
db.sil("veri") /* database'den sil */

KONTROL KODU

const { Database } = require("n3rthusdb")
const n3rthusDB = {
    "file": "database",
    "autoFile": true,
};
const db = new Database(n3rthusDB)
if(db.kont('n3rthus')){ /* databaseyi kontrol et */
    var n3rthus = db.bul('n3rthus') /* veri Var İse belirtilen veriyi konsola gönder */
} else {
    var n3rthus = "!" /* veri Yok ise veriyi "!" olarak ayarla */
}
console.log(n3rthus) /*Prefixi Gönderir*/

//veri yok ise KONSOL => !
//veri var ise KONSOL => <veri>

BULMA KODU

const { Database } = require("n3rthusdb")
const n3rthusDB = {
    "file": "database",
    "autoFile": true,
};
const db = new Database(n3rthusDB)
/*{"veri":"TEST"}*/
console.log(db.bul("veri"))

YEDEKLE KODU

const { Database } = require("n3rthusdb")
const n3rthusDB = {
    "file": "database",
    "autoFile": true,
};
const db = new Database(n3rthusDB)
db.yedekle("veri") /* dosyayı belirtilen isimde yedekler */

HEPSİ KODU

const { Database } = require("n3rthusdb")
const n3rthusDB = {
    "file": "database",
    "autoFile": true,
};
const db = new Database(n3rthusDB)
let all = db.hepsi() /* Database Dosyasındaki Verileri Gösterir */
console.log(all)
//KONSOL => { "stated": "veri", "stated2": "veri2", "stated3": "veri3", "stated4": "veri4", "stated5": "veri5"}

SIFIRLA KODU

const { Database } = require("n3rthusdb")
const n3rthusDB = {
    "file": "database",
    "autoFile": true,
};
const db = new Database(n3rthusDB)
db.sıfırla() /* Databasei Sıfırlar */

TOPLA/ARTIR KODU

const { Database } = require("n3rthusdb")
const n3rthusDB = {
    "file": "database",
    "autoFile": true,
};
const db = new Database(n3rthusDB)
// DATABASE => {"veri":9}
db.topla("puan",1) /* Belirtilen verinin numarasını Belirtilen Sayı İle Toplar */
// OLD DATABASE => {"veri":9}
// NEW DATABASE => {"veri":10}

ÇIKARKODU

const { Database } = require("n3rthusdb")
const n3rthusDB = {
    "file": "database",
    "autoFile": true,
};
const db = new Database(n3rthusDB)
// DATABASE => {"veri":10}
db.çıkar("puan",5) /* Belirtilen verinin numarasını Belirtilen Sayı İle Çıkartır */
// OLD DATABASE => {"veri":10}
// NEW DATABASE => {"veri":5}

Keywords

FAQs

Package last updated on 23 Jul 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc