LETSQLAccessor
LETSQLAccessor()Accessor for caching, backends, and metadata on an expression (expr.ls).
Use expr.ls on any expression to get a LETSQLAccessor. You do not construct LETSQLAccessor directly.
Attributes
| Name | Type | Description |
|---|---|---|
| expr | ir.Expr | The expression this accessor is attached to. |
| cached_nodes | tuple | All CachedNode nodes in the expression. |
| tags | tuple | Alias for get_tags(). |
| cache | Cache | None | Cache for this node if is_cached; else None. |
| caches | tuple | Cache for each cached node in the expression. |
| backends | tuple | All backends (sources) used by the expression. |
| is_multiengine | bool | True if the expression uses more than one backend. |
| dts | tuple | DatabaseTable / SQLQueryResult nodes (excluding RemoteTable, CachedNode). |
| is_cached | bool | True if the root of this expression is a cached node. |
| has_cached | bool | True if the expression contains any cached node. |
| untagged | ir.Expr | Expression with tag nodes removed (for hashing). |
| uncached | ir.Expr | Expression with cache nodes replaced by their inputs. |
| uncached_one | ir.Expr | If is_cached, the single uncached parent; else the expression. |
| tokenized | str | Stable token for the expression (e.g. for caching). |
| cache_path | Path | None | Path to cache file if cached with ParquetStorage; else None. |
| cached_dt | Node | None | Cached result (e.g. Read) if exists(); else None. |