You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This system is designed to solve the problem of being unable to connect to an external database through VPN or other methods (where the database is not open to the public). It utilizes the TCP protocol to access the database connected to the client-side program that we have developed (the client program). The basic concept is that the user sends a SQL command request through the API, and then the server controls the client-side program connected to the database to execute the SQL command and return the results.
4
4
5
-
This system will help solve the problem. When you are unable to connect to an external server using VPN or other methods, using the [TCP protocol] capability to access the database connected to the client-side program.
this example api [see](https://github.com/Anechasun/gateway-database/blob/master/server/index.js#L21)
60
+
This is just a demo API. You can customize it as needed, as shown in this example code [server/index.js](https://github.com/Anechasun/database-gateway/blob/master/server/index.js#L21).
62
61
63
62
```bash
64
63
curl -X GET \
65
64
'http://localhost:3000/query?sql=SELECT * FROM users'
0 commit comments