ATRIUMsearch → argument graph
ExampleArticle

The --code option lets you provide a block of Python code, or a path to a .py file, defining a rows() function or iterable that sqlite-utils insert/upsert uses to generate rows to insert, as an alternative to importing from a file.

sqlite-utils 4.1 adds a --code option to insert/upsert so users can define a rows() generator in Python directly on the command line instead of importing from a file. ✦ AI generated

Simon Willison · Simon Willison's Weblog · 2026-07-11 · original ↗

sqlite-utils insert and sqlite-utils upsert now accept a --code option for providing a block of Python code (or a path to a .py file) that defines a rows() function or rows iterable of rows to insert, as an alternative to importing from a file.

Read full article ↗excerpt · fair-use quotation

Related moments