S
S
Sergey Semenov2019-09-16 18:22:48
RESTful API
Sergey Semenov, 2019-09-16 18:22:48

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

2 answer(s)
D
Developer, 2019-09-16
@Skaper777

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!

A
Antonio Solo, 2019-09-16
@solotony

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 question

Ask a Question

731 491 924 answers to any question