Skip to main content
Version: 1.2.6

Query Builder

Info

buildQuery() requires two arguments, first one is the query string and second is optional

index.js
import presql from "./connection";

async function execute() {
let q = "SELECT * FROM users"
const data = presql.buildQuery({query:q, role:"0x00042"})

console.log(data);
}