Answer the question
In order to leave comments, you need to log in
Do you need sql queries to the database on the hosting?
Now, if I have a hosted site and I created a database there, do I need to create sql queries from the client, or can I access it directly through rest.api, for example?
Answer the question
In order to leave comments, you need to log in
No. In no case should the client directly query the database !!!
Only through the API.
Otherwise, your database will be deleted on the first day. Think for yourself - you will store the connection parameters to the database in the client. Simple reverse engineering - and anyone can use your base as their own!
you can access the database either directly from the client via SQL, or through a local laying (with which the client communicates via some kind of API over HTTP)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question