Back to Daily Feed 
sqlite-utils 4.1: New CLI Features & DX Improvements
Worth Reading
Originally published on Simon Willison's Weblog by Simon Willison
View Original Article
Share this article:
Summary & Key Takeaways
sqlite-utils insertandupsertnow accept a--codeoption to generate rows with Python.- A new
--typeoption allows overriding automatically chosen column types during insertion. - The
table.drop_index()method anddrop-indexcommand are now available. sqlite-utils querycan read SQL queries directly from standard input.sqlite-utils upsertcan now infer primary keys from existing tables.
Our Commentary
Simon Willison's sqlite-utils just keeps getting better. The --code option for insert/upsert is a genuinely clever addition, making it even more flexible for scripting. I also appreciate the --type override; that's a common headache with CSV imports. These are small but mighty improvements that make working with SQLite from the CLI a smoother experience.
View Original Article
Share this article: