GithubHelp home page GithubHelp logo

Comments (5)

BrightSoul avatar BrightSoul commented on September 3, 2024 1

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.

AlexCovizzi avatar AlexCovizzi commented on September 3, 2024 1

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.

AlexCovizzi avatar AlexCovizzi commented on September 3, 2024

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.

BrightSoul avatar BrightSoul commented on September 3, 2024

Cool, thanks for your quick reply!

from vscode-sqlite.

BrightSoul avatar BrightSoul commented on September 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.