-
I apologize if I have missed this documentation, but I have looked for examples or docs for calling the DB directly from the backend API and have been unable to figure it out. Does anyone have something they can point me to that just shows a simple execute call? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Never fails. The second I post I then figure it out. Posting for future me when I forget:
|
Beta Was this translation helpful? Give feedback.
-
To fetch data, I'd recommend (in the api.sql): function getRows(query, params = []) {...}
function getRow(query, params = []) {...}
function getRowOrNull(query, params = []) {...}
function getValue(query, params = []) {...} |
Beta Was this translation helpful? Give feedback.
Never fails. The second I post I then figure it out. Posting for future me when I forget: