AlmaSQL
Directives
Directives are functions that can extend AlmaSQL by customizing the way an expression renders.
Using a directive in your template is as simple as calling a function in a template expression.
AlmaSQL includes a number of built-in directives like set and values.
Users can also write their own custom directives.
set
Imagine table book and columns id, title, and is_active.
And you want to update book by id.
UPDATE book
SET title = :title, is_active = :is_active
WHERE id = :id
But when you need to modify column, you need to change the query template. What if you forgot to do it? This will lead to unexpected bugs. So better to use directives that, depending on the arguments, will render the required columns and values.
UPDATE book{{ set({'title': 'Why do I love almasql?', 'is_active': True}) }}
WHERE id = :id
Metadata
Release files for almasql 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| almasql-0.2.6.tar.gz | 6.4 kB | Without provenance | Details for almasql-0.2.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| almasql-0.2.6-py3-none-any.whl | Python 3 | none | any | Details for almasql-0.2.6-py3-none-any.whl |
Total release size: 14.5 kB
Release files / almasql-0.2.6.tar.gz
| Download URL | almasql-0.2.6.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c09f232b7708476fc4b046058a9741d3331209e5532e8f5d95bf6071e730a037
|
|
BLAKE2b-256 checksum How to use checksums |
18b61fe5e6838e23cba4ed5d9e4ea2ffc8b0f93b4ff89b6a5ae47fb6eb3ca5e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Darwin/22.6.0
|
Release files / almasql-0.2.6-py3-none-any.whl
| Download URL | almasql-0.2.6-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee2e5354526c1003f0a88e0405d345ab92872e803d29b2a13bb8f8d389666540
|
|
BLAKE2b-256 checksum How to use checksums |
b0ae4c669cdf72936cdb17baa78ab40815b864677e06f1c8f2bd61169c2757be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.12.3 Darwin/22.6.0
|
Security for almasql 0.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.