@dkaframework/database
v1.2.7
Published
[]() []() [ => {
let db = await new MariaDB({
host : "127.0.0.1", // Options.HOST.WILDCARD
port: 3306,
... // Optional Config if you change engine type
});
db.Read(tableName, {
search : [],
limit : 1
}).then(async (resultData) => {
// the result Read Database
}).catch(async (error) => {
// the result if error read data or not exist
})
})()