question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Command for creating an empty database

See original GitHub issue

I 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:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
simonwcommented, Jan 13, 2022

Wrote a lot more about this feature here: https://simonwillison.net/2022/Jan/12/how-i-build-a-feature/

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found