Join Discord
Powered by
Is there an API where I can directly pass sql quer...
# help
e
eunjae
11/08/2021, 11:38 AM
Is there an API where I can directly pass sql query without having to use client's select, insert, etc methods?
s
silentworks
11/08/2021, 12:29 PM
No, this would be bad by design, it would cause security issues too
m
Mihai Andrei
11/08/2021, 2:25 PM
You could also use something like
https://knexjs.org/
e
eunjae
11/08/2021, 2:26 PM
Yeah I understand. Thinking again, people could send unsanitized queries.
m
Mihai Andrei
11/08/2021, 2:26 PM
And connect directly to the database
e
eunjae
11/08/2021, 2:26 PM
Ah yeah, I forgot the fact that I can directly connect to the database.
eunjae
11/08/2021, 2:26 PM
For now, like someone suggested, I will go for views.
Previous
Next