Skip to documentation
SLOP

tiny.sql.StatementResult

Reference tiny.sql StatementResult

Defined in tiny.sql.

API (7)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callstiny.sqlStatementResult
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/sql/src/statement/result.zig:188

zig
pub const Result = union(enum) {    mutation: session_mod.RelationFlush,    staged: usize,    catalog: session_mod.CatalogFlush,    rows: Rows,    pub fn deinit(self: *Result, allocator: Allocator) void {        _ = allocator;        switch (self.*) {            .mutation => {},            .staged => {},            .catalog => {},            .rows => |*rows| rows.deinit(),        }        self.* = undefined;    }    pub fn nextRow(self: *Result) ?[]const u8 {        return switch (self.*) {            .mutation => null,            .staged => null,            .catalog => null,            .rows => |*rows| rows.next(),        };    }    pub fn rowCount(self: *const Result) usize {        return switch (self.*) {            .mutation => 0,            .staged => 0,            .catalog => 0,            .rows => |*rows| rows.count(),        };    }};

Source: lib/sql/src/root.zig:177

zig
pub const StatementResult = statement.Result;

Also reachable as

statement.Result.

Audit

Definitions4
Public names8
Members4
Version26.7.0
Revisiondaab053ee433