LIB EDIT

Core command LI ED LIED

Opens a library entry in Notepad for editing, and saves it back on close; pre-fills a metadata skeleton for a new entry

Arguments

<name> (mandatory) an existing entry, or a new file name

Examples

LIB EDIT COUNTRY.SQL

Notes

Opens a library entry in Notepad, and saves it back into the library on close: LIB EDIT <name>.

Mirrors EDIT's no-argument mode (see CommandEdit.editLastQuery()): writes the entry's current content to a real temporary .sql file, shells to notepad.exe via File), waits for it to close, reads the file back, and writes the result into the library under name (unlike EDIT, which only updates the in-memory last query, this persists straight to the library file). Windows-only, same constraint as EDIT's no-argument mode.

If name doesn't already exist in the library, the temp file isn't empty: it's pre-filled with a metadata skeleton (see SEED_SKELETON) instead, so the header is something to edit rather than something to remember to add from scratch. See docs/SQL_LIBRARY_AND_SCRIPTS.md, section 10.

Last modified in release 5.1.0.