node-mysql-id
v1.1.2
Published
MYSQL query builder with indonesian language
Downloads
2
Readme
Mysql Query Builder Bahasa Indonesia
Instalasi
npm i node-mysql-id
Cara menggunakan
const mysql = require("node-mysql-id").mysqlId;
async function test() {
await mysql.hubungkan({
host: "localhost",
database: "nama_database",
user: "root",
password: "",
});
mysql
.pilihAtribut("*")
.dariTabel("users")
.dimana("email", "=", "ghifari")
.dapatPertama()
.then(({ hasil, infoField }) => {
console.log(hasil);
});
mysql
.pilihAtribut("*")
.dariTabel("users")
.semuaData()
.then(({ hasil, infoField }) => {
console.log(hasil);
});
mysql.KueriMentah("SELECT * FROM users").then(({ hasil, infoField }) => {
console.log(hasil);
});
}
test();