1.3.7 • Published 1 month ago

hedystia.db v1.3.7

Weekly downloads
-
License
ISC
Repository
github
Last release
1 month ago

Installation

npm i hedystia.db

yarn add hedystia.db

Nodejs Version

  • v18.0.0 or higher

Links

Example

const Database = require("hedystia.db");

// Create a file named database.ht and enter the password
const database = new Database("./database.ht", "password");

// You can only use it once to create the table after that you can no longer use it.
database.createTable("users", ["id", "name", "email"]);

database.insert("users", {id: "1", name: "John Doe", email: "jdoe@example.com"});

database.insert("users", {id: "2", name: "María", email: "maria@example.com"});

const users = database.select("users");

console.log("----------------------------------");

console.log(users);

const userJohn = database.select("users", {name: "John Doe"});
console.log("----------------------------------");
console.log(userJohn);

database.delete("users", {name: "María"});

const users2 = database.select("users");
console.log("----------------------------------");
console.log(users2);

database.update("users", {id: "1"}, {name: "Jane Doe"});

const users3 = database.select("users");
console.log("----------------------------------");
console.log(users3);

Functions

FunctionDescription
createTableTo create a table
deleteTableTo delete a table
insertTo insert a data in the table
updateTo update a data in the table
selectTo search for information in a table
deleteTo delete a data from the table
1.3.7

1 month ago

1.3.6

1 month ago

1.3.5

1 month ago

1.3.4

1 month ago

1.3.3

1 month ago

1.3.2

1 month ago

1.3.0-dev.0.0.5

3 months ago

1.3.0-dev.0.0.4

3 months ago

1.3.0-dev.0.0.3

3 months ago

1.3.0-dev.0.0.2

3 months ago

1.3.0-dev.0.0.1

3 months ago

1.3.1

3 months ago

1.3.0

3 months ago

1.2.2

1 year ago

1.2.1

1 year ago