Command for creating an empty database
See original GitHub issueI sometimes find the need to create an empty SQLite database file - for example if I want to enable WAL on it before using it with another script. I currently do that like this:
sqlite3 my.db vacuum
sqlite-utils enable-wal my.db
It would be nice if sqlite-utils
had a convenience command for doing this.
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
How can I empty a MySQL database? - SiteGround KB
To empty the content of a MySQL database use phpMyAdmin or SSH. It is highly recommended to create a backup of your database...
Read more >Create a MySQL Database in the CLI with 6 Easy Steps
In this guide, you can learn how to create a MySQL database using the command line interface (CLI).
Read more >CREATE DATABASE command - IBM
The CREATE DATABASE command initializes a new database with an optional user-defined collating sequence, creates the three initial table spaces, creates the ...
Read more >SQL create empty database - Stack Overflow
when I create database in sql server, it creates some tables by default inside new database from another one, which I had created...
Read more >How to Create a New Database in MySQL (Tutorial with ...
1. CREATE DATABASE: MySQL syntax example · 2. Create a database from the Command Line Client · 3. Create a database using MySQL...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Wrote a lot more about this feature here: https://simonwillison.net/2022/Jan/12/how-i-build-a-feature/
Documentation: https://sqlite-utils.datasette.io/en/latest/cli.html#creating-an-empty-database