Comments (5)
Just to clarify: I know I can just create a new empty file and name it database.db
, and then run a CREATE TABLE comand against it using this extension. However, I think it would be more user-friendly to just have a 'Create database' command and select it as the current database for subsequent queries.
Moreover, when I try to use the "Open Database in Explorer" command on an empty database (file of size 0), nothing happens. I think this is confusing. The database should appear in the Sqlite Explorer even if it's of size 0.
from vscode-sqlite.
Moreover, when I try to use the "Open Database in Explorer" command on an empty database (file of size 0), nothing happens. I think this is confusing. The database should appear in the Sqlite Explorer even if it's of size 0.
This is fixed in version 0.6.0.
Regarding the command Create database
i did not implement it.
What i wanted to do was something like the command File: New File
where you can create the file directly in the files explorer and then an sql
file already bound to the database is automatically created and opened.
However the vscode api is very limited for the files explorer, and there is no way of implementing something similar to File: New File
.
To make your use case a little better i added a New Query
option in the files explorer, when right clicking the database, so the process of creating a new database and opening an sql
file bound to it is now:
File: New File
> [right click the new database] > New Query
Instead of:
File: New File
> SQLite: New Query
> Use Database
> [select the new database]
from vscode-sqlite.
Moreover, when I try to use the "Open Database in Explorer" command on an empty database (file of size 0), nothing happens. I think this is confusing. The database should appear in the Sqlite Explorer even if it's of size 0.
That's a bug, already fixed in the master
branch.
Create database
will be added for release 0.6.0, that should come soon.
from vscode-sqlite.
Cool, thanks for your quick reply!
from vscode-sqlite.
However the vscode api is very limited for the files explorer, and there is no way of implementing something similar to File: New File.
Ok, it can't be helped then, I guess. Thanks you for your effort @AlexCovizzi, I've really appreciated it.
from vscode-sqlite.
Related Issues (20)
- Sqlite3 strict table syntax error HOT 2
- "sqlite.recordsPerPage": -1 does not show last record
- Explorer "Open Database" conflect
- Sqlite Explorer will not open database HOT 2
- [Feature Request] Button to run query
- [Feature Request] Heading label above query output
- Show (or document?) simple status (running, idle, error) HOT 1
- support sqlite 3.41.0 by avoiding double quotes for values HOT 18
- Failed to open database HOT 3
- [vscode-sqlite][ERROR] Failed to open database HOT 1
- Failed to open databes HOT 3
- Extension overrides vscode-icons
- Is project dead?
- sqlite HOT 1
- Comments break queries
- Can't open database
- 'sqlite3' is not recognized as an internal or external command, operable program or batch file. HOT 2
- old SQLite version
- Cannot open a database HOT 16
- Foreign Key Constraints not honored?
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 vscode-sqlite.