feat: implement command functionality with new CommandController, update Query entity, and enhance query execution with headers support
This commit is contained in:
@ -9,9 +9,11 @@ function createSQL(id) {
|
||||
return squel.select().from("test").where("id = ?", id).toString();
|
||||
}
|
||||
|
||||
async function main(input) {
|
||||
async function main(input, headers) {
|
||||
const sql = createSQL(input.id);
|
||||
const res = await asyncCall(db, sql);
|
||||
|
||||
log(headers);
|
||||
|
||||
return { test: 1, array: [1, 2, [{ id: 1, name: "Test" }]] };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user