tiny.sql.RelationRead
Defined in plan.
API (9)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/sql/src/plan.zig:226
zig
pub const RelationRead = struct { lease: file.ReadLease, execution: RelationExecution, pub fn deinit(self: *RelationRead) void { self.lease.deinit(); self.* = undefined; } pub fn borrow(self: *const RelationRead) RelationExecution { return self.execution; } pub fn get(self: *const RelationRead, allocator: Allocator, rowid: i64) Error!?[]u8 { return try self.execution.get(allocator, rowid); } pub fn scan( self: *const RelationRead, target: *relation_mod.Scan, allocator: Allocator, start: ?i64, end: ?i64, ) Error!void { try self.execution.scan(target, allocator, start, end); } pub fn lookup( self: *const RelationRead, target: *index_mod.Scan, allocator: Allocator, index_slot: usize, prefix: []const row.Value, ) Error!void { try self.execution.lookup(target, allocator, index_slot, prefix); } pub fn indexScan( self: *const RelationRead, target: *index_mod.Scan, allocator: Allocator, index_slot: usize, start: ?[]const row.Value, end: ?[]const row.Value, ) Error!void { try self.execution.indexScan(target, allocator, index_slot, start, end); } pub fn indexRange( self: *const RelationRead, target: *index_mod.Scan, allocator: Allocator, index_slot: usize, start: ?index_mod.Bound, end: ?index_mod.Bound, ) Error!void { try self.execution.indexRange(target, allocator, index_slot, start, end); }};Source: lib/sql/src/root.zig:163
zig
pub const RelationRead = plan.RelationRead;Audit
| Definitions | 8 |
|---|---|
| Public names | 16 |
| Members | 2 |
| Version | 26.7.0 |
| Revision | daab053ee433 |