Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AlexCovizzi/vscode-sqlite
VSCode extension to explore and query SQLite databases.
https://github.com/AlexCovizzi/vscode-sqlite
sqlite vscode
Last synced: 3 months ago
JSON representation
VSCode extension to explore and query SQLite databases.
- Host: GitHub
- URL: https://github.com/AlexCovizzi/vscode-sqlite
- Owner: AlexCovizzi
- License: apache-2.0
- Created: 2018-05-15T15:41:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-01-20T17:18:54.000Z (10 months ago)
- Last Synced: 2024-06-14T03:38:05.512Z (5 months ago)
- Topics: sqlite, vscode
- Language: TypeScript
- Homepage:
- Size: 8.15 MB
- Stars: 197
- Watchers: 10
- Forks: 22
- Open Issues: 55
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# vscode-sqlite (unmaintained)
**Note: The project has been unmaintained since mid 2022 and it will not receive any new updates. The extension should still work in most cases, however the embedded SQLite is out of date and it may not have some of the newer features, in that case you can provide your own SQLite (see `sqlite.sqlite3` setting).**
VSCode extension to explore and query SQLite databases.
![static/sqlite_workflow_1](https://raw.githubusercontent.com/AlexCovizzi/vscode-sqlite/master/static/sqlite_workflow_1.gif "SQLite Workflow")
## Requirements
**Windows**, **MacOS**: No requirement.**Linux**: If the extension is not working out-of-the-box, it may be necessary to install sqlite3 in your system (on Ubuntu: `sudo apt install sqlite3`)
**Note**: The extension includes precompiled binaries for the SQLite CLI (used to execute queries), in case the included binaries do not work (or if you want to use your own binaries) you need to provide the path/command to the sqlite3 CLI executable in the setting `sqlite.sqlite3`.
## Features
* **Query** SQLite databases and view results in a table (also supports dot commands like `.tables`, `.schema`, ecc).
* **Export** query results to `json`, `csv` and `html`.
* **Sidebar explorer**: list databases, tables, views and columns.
* **Autocompletion** for SQLite keywords, table and views names, column names (autocompletion is available for an SQL document once its bound to a database, to bind an sql document to a database use the command `SQLite: Use Database`)
* **Grammar** support for SQLite keywords. This is available for documents with language `sqlite`. You can mark a document as an `sqlite` document adding `-- sqlite` in the first line.
## Commands
* **SQLite: New Query** Create a new untitled `sqlite` file.
* **SQLite: Run Query** Execute query script in the editor.
* **SQLite: Quick Query** Choose a database and execute a query without creating a new document.
* **SQLite: Use Database** Bind current `sql` document to the selected database.
* **SQLite: Open Database** Open the selected database in the sqlite explorer.
* **SQLite: Close Database** Remove the selected database from the sqlite explorer.
* **SQLite: Refresh Databases** Refresh databases open in the sqlite explorer.
* **SQLite: Show output** Show the extension's output channel.
* **SQLite: Change Workspace Trust** Change the trust of this workspace. By default every workspace is untrusted for security reasons.
## Settings
* `"sqlite.sqlite3": string` sqlite3 command or CLI executable path (this setting is disabled for untrusted workspaces)
* `"sqlite.logLevel": string` Set output channel log level (DEBUG, INFO, WARN, ERROR).
* `"sqlite.recordsPerPage": number` Number of records to show per page. (-1 to show all records).
* `"sqlite.databaseExtensions": string[]` The file extensions recognized as SQLite database.
* `"sqlite.setupDatabase": { [path]: { sql: string[] } }` Custom query to run when opening a database.
In each entry the key is the path of the database and the value is an object with the SQL queries to run (in order).
For example:
```{ "./users.db": { "sql": ["PRAGMA foreign_keys = ON;"] } }```
Means that every time the database `users.db` is opened, the SQL query `PRAGMA foreign_keys = ON;` is executed.## Thanks to the [Contributors](https://github.com/AlexCovizzi/vscode-sqlite/graphs/contributors)!
[mandel59 (Ryusei YAMAGUCHI)](https://github.com/mandel59), [LokiSharp (LokiSharp)](https://github.com/LokiSharp), [MrCodingB(MrCodingB)](https://github.com/MrCodingB)