Replies: 4 comments 16 replies
-
Hello and welcome to SQLPage ! Unfortunately, a single instance of SQLPage cannot query multiple databases at the moment. I will be working on that soon, though, because it's one of the building blocks of SQLPage cloud. Current solutionsLaunch multiple instances of SQLPageSQLPage is extremely lightweight, and a single low-end server can easily run dozens of instances of SQLPage, each with their own environment variables. The multiple instances must be listening on different ports, but they can share the same root folder. You can use standard hyperlinks between the multiple instances. And if you have a domain name and want the result to be totally transparent to the user when they look at the URL, you can setup a reverse proxy on top of the multiple instances to dynamically select which instance serves which path. Connect to one database from the other oneIf you have full access to one of the databases, then you can use your database's ability to connect to another database. What database system are you using exactly ? Here are a few pointers to start:
|
Beta Was this translation helpful? Give feedback.
-
Hi, I'm using SQLite and just tried a lot of things to run SQLPage with multiple Sqlite-Databases. The bad news is, it seems that in sqlite attached DBs are not persistent on the database itself. The attach is bound to the connection and so the attachments have to be renewed after each connection.open. I can use attach in migrations-commands but when I open SQLPage-URL the attachment is gone. So the missing piece for me is: |
Beta Was this translation helpful? Give feedback.
-
if support DuckDB, we can easily access DuckDB, SQLite, Postgres, MYSQL, CSV,Excel, json, API, Parquet at the same time |
Beta Was this translation helpful? Give feedback.
-
Here is an example setup that connects to two databases: a main postgres database, and a second mysql database using the postgres mysql foreign data wrapper:
|
Beta Was this translation helpful? Give feedback.
-
Hello,
I am interested in using SQLPage as a dashboard to display information from multiple databases.
I was able to create a table of results from Table in DB #1, and it looks great and was easy using SQLPAGE! :)
But I would like to also link to a new page where I can display results from an entirely different DB.
Since I am using a Windows environment variable for DATABASE_URL, is there a way for me to be able to change the DATABASE_URL when navigating from page 1 to page 2?
I read through the documentation and did not see anything related other than the use of the sqlpage.json, which I don't think would be of any help as it only appears to have the ability to list a single database url.
Apologies if I missed something already documented, I would be thankful to be pointed in the direction of where to look to learn my answer.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions