Repository navigation
v0.35.0
Removed
- The
sqlode/climodule is no longer part of the documented API on HexDocs. It builds the command-line parser of thesqlodeexecutable and was not meant to be imported; Hex lists no package that depends on sqlode.sqlode/runtime, which generated code imports, is unchanged.
Fixed
- A table named only inside a subquery no longer makes an unqualified column of the outer query ambiguous.
SELECT id, (SELECT COUNT(*) FROM posts WHERE posts.author_id = authors.id) AS post_count FROM authorsandSELECT name FROM authors WHERE id > $1 AND EXISTS (SELECT 1 FROM posts WHERE ...)stoppedgeneratewithcolumn "id" is ambiguous(SQD4008) becausepostsalso has anid. The outeridnow resolves toauthors.id. Joined tables that share a column name are still ambiguous. - A literal
INlist with more than one placeholder,WHERE id IN (?, ?, ?)orWHERE id NOT IN ($1, $2), stoppedgeneratewithcould not infer type for parameter $1unless every placeholder was cast. Each placeholder of the list now takes the column's type, as a singleIN ($1)already did. sqlode --helpand the help ofinit,generateandverifyprinted their examples as one run-on line (Examples: sqlode init sqlode init --output=./config/sqlode.yaml sqlode) and ran the paragraphs together. Each example is on its own line now, with a blank line between paragraphs.
Install
Download the sqlode escript below and place it on your PATH.
Requires Erlang/OTP runtime.
chmod +x sqlode
./sqlode generate --config=sqlode.yamlSHA256SUMS is signed with cosign (SHA256SUMS.sigstore.json), and SLSA provenance is attached. See "Verifying release integrity" in the README.