Introducing Data Connections! #14571
Replies: 10 comments 19 replies
|
This is great! Any plans for ROracle support on the horizon? |
|
Great stuff. I work with MongoDB (authored the |
|
Looks very interesting! |
|
I really miss Mysql/MariaDB here. |
|
This is very interesting. I did a quick test with a duckdb file and it seems to have worked well. On the "old" connections pane it is pretty clear when you are connected and when you are disconnected. I can't seem to find a "disconnect" button. I think this is useful information for various reason. When I collapse the connection (arrow horizontal) and then un-collapse (click) the connection I see a brief spinner. So I guess when the connection is collapsed it gets closed? Perhaps the database icon could be green when it is connected. |
|
This is niche but since you all already support DuckDB, a Motherduck connection would be awesome! |
|
It seems like the connections you add are global in the sense that when you go into a new project they still show up in that new project. I have a few project where I use duckdb and when I am in a different "project context" I would prefer to only see the connections that are relevant to that project. Also, I notice that the duckdb connection, where I have specified the path as a relative path - when I switch to a different project it still shows up and doesn't work, which makes sense because now the path is wrong. So I think you should consider, if it is possible to have some pr project settings and weather database files (duckdb, sqlite) should only accept full paths. |
|
BigQuery would be fantastic as well, thanks! |
|
Thanks for building Data Connections. I’d like to add a request for Microsoft SQL Server support. A lot of us work in environments where SQL Server is one of the main data sources. Since Positron already supports SQL Server in the existing Connections Pane via For a first version, basic ODBC support, schema/table browsing, and R/Python code generation would already be very useful. Thanks! |

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Introducing Data Connections (Experimental Preview)
We're excited to share an early look at Data Connections, a new experimental feature in Positron, and we'd love your feedback.
Data Connections brings the existing Connections and Catalog Explorer features together into a single, unified experience. Our goal is for Data Connections to become the way you work with data in Positron, from local files and database servers to cloud data warehouses and the data catalogs that govern them.
For now, the existing features remain unchanged. Data Connections, Connections, and Catalog Explorer all exist side-by-side, and nothing changes about how Connections and Catalog Explorer work today. In a future release, once Data Connections is more complete, it will replace both Connections and Catalog Explorer.
This is an early, experimental preview. It's turned off by default, the set of supported databases is still small, and the experience will change as we build it out. We're sharing it now because we want you to try it and tell us what works, what doesn't, and what you need.
What's in this first preview
Data Connections currently supports three database drivers:
More drivers are on the way. We plan to add support for Databricks, Snowflake, Redshift, Spark, and others over the coming releases.
Once connected, you can:
Turning on Data Connections
Data Connections is turned off by default. To turn it on:
Cmd+,on macOS,Ctrl+,on Windows/Linux).Or add this line to your
settings.jsonfile:Then reload Positron for the change to take effect (Command Palette -> Developer: Reload Window).
After reloading, you'll find a new Data Connections view in the side bar.
Creating a connection
Open the Data Connections view and click Add Connection (+ icon). From there:
Below are the specifics for each database.
DuckDB
.duckdbfile you want to open. (Paths can be absolute, relative to your workspace, or start with~/.)SQLite
.sqlite/.dbfile. (Paths can be absolute, relative to your workspace, or start with~/.)PostgreSQL
PostgreSQL supports several ways to connect. After selecting PostgreSQL, choose the method that matches your setup:
.pgpassfile or thePGPASSWORDenvironment variable.)postgresql://user:password@host:5432/database.Fill in the fields for your chosen method, name the connection, and click Save.
Managing connections
Your saved connections persist across sessions and appear in the Data Connections tree. Use a connection's ··· button on the right (or right-click it) to manage it:
Generating connection code
Open a connection's ··· menu (or right-click it) and choose Connect With -> Python or Connect With -> R to generate connection code you can drop into your own work. Positron generates idiomatic snippets:
psycopg2,sqlite3,duckdb) or SQLAlchemyRPostgres,RSQLite,duckdb)For example:
What's not here yet
This is an early preview, so some things are still on the way:
We want your feedback
This is just the beginning, and your input will directly shape where it goes. We'd especially love to hear:
Please reply to this discussion with your thoughts, or file an issue if you hit a bug. If you would like to talk to our product team about Data Connections and SQL support in Positron, schedule a call here.
Thanks for trying it out!
All reactions