Introducing Data Connections! #14571
Pinned
softwarenerd
announced in
Announcements
Replies: 2 comments 2 replies
-
|
This is great! Any plans for ROracle support on the horizon? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Great stuff. I work with MongoDB (authored the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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!
Beta Was this translation helpful? Give feedback.
All reactions