shape-runtime 0.3.0

Bytecode compiler, builtins, and runtime infrastructure for Shape
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// @module std::core::table_queryable
/// Queryable implementation for Table<T>.
///
/// Makes Table<T> a first-class Queryable source, enabling generic code
/// that works on both in-memory tables and database queries.
///
/// Note: Table already has native PHF methods for filter/map/orderBy/limit/execute.
/// This trait impl provides UFCS dispatch so generic Queryable code resolves correctly.

impl Queryable for Table {
    method filter(predicate) { self.filter(predicate) }
    method map(transform) { self.map(transform) }
    method orderBy(key_fn, direction) { self.orderBy(key_fn, direction) }
    method limit(n) { self.limit(n) }
    method execute() { self }
}