U
U
Urbansamurai2017-08-10 22:34:56
Node.js
Urbansamurai, 2017-08-10 22:34:56

Is there any way to connect to the MSSQL database through the frontend (VueJS), bypassing the backend?

I stumbled upon Knex.js but never figured out how to use it. There are no callbacks and promises, it is not clear how to track the state of the connection. I raised MSSQL locally in my docker, I try to reach there from the Vue application using Knex - it doesn’t work out.
Is it possible to connect to the database at all, bypassing the backend and API?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vlad, 2017-08-10
@d1skort

Everything has long been invented by
DataScript for example

R
RidgeA, 2017-08-10
@RidgeA

Of course you can. To do this, the database must be accessible from the computer where the frontend is running. It is only worth doing this in rare cases when the number of customers is very small. If several hundred (thousands, etc., depending on the server) users open the interface, then the database will not find it enough.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question