Comments (5)
When I connect to connection defined RW in SQL tools it immediately blocks any access to the file with error "... is being used by another process" => I'm not able to send any query or close the connection then
Driver version: 0.0.4
SQLTools: 0.28.0
VSCode: 1.83.1
from sqltools-duckdb-driver.
Also facing this bug. This extension doesn't release the lock upon disconnect. You have to quit vscode entirely.
Also, this shouldn't be necessary at all when the connection is set as read-only
from sqltools-duckdb-driver.
@archiewood I think the issue is fairly straightforward actually. I noticed this doesn't happen when you test the connection, which should have the same functionality as a READ_ONLY
saved connection. So, what's the difference?
in testConnection
we await
this.close()
.
In close
, we do not await
. We're likely setting the connection to null
before the closing happens.
I don't have a way to test this, but it should be a 60s change tbh.
from sqltools-duckdb-driver.
I attempted to make this change above. it certainly makes an improvement but is still flaky, That said, I was able to find the true culprit
When you disconnect and close out of all windows (results, *.session.sql, any *.sql file), there's still a lingering language server process. killing that PID will release the duckdb connection (and a new sqltools language server process will spin up)
from sqltools-duckdb-driver.
@alex-gable thanks for the digging.
Will happily accept a PR if you find anything to make it less flaky!
from sqltools-duckdb-driver.
Related Issues (12)
- Locks duckdb file while in use HOT 2
- Not compatible with windows / linux HOT 4
- Switch from read-only mode to read-write mode for in memory connections HOT 4
- All views within a DB are shown within each schema HOT 3
- Support remote development/dev container HOT 1
- 0.9.0 support HOT 5
- Update duckdb to 0.9.2
- Unable to view schema for a table. HOT 4
- Latest release removed support for any vscode before 1.87 (Feb 2024) HOT 2
- Update DuckDB to 0.10.2
- Better Support for Schema / Attached Databases
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sqltools-duckdb-driver.