Skip to documentation
SLOP

tiny.sql.createHistoryFetchRequest

Reference tiny.sql createHistoryFetchRequest

Defined in sync.

Called byCallstest sourcelib.sql.src.synctest: sync negotiated fetch advertise...sync.FetchRequestinitsyncfetchRequestFromHistory
Static calls · unresolved targets: 0 · external targets: 3.

Source

Source: lib/sql/src/sync.zig:729

zig
pub fn fetchRequestFromHistory(allocator: Allocator, local: *const history_mod.History, wants: []const []const u8) Error!FetchRequest {    const entries = try local.commitEntries(allocator);    defer allocator.free(entries);    const haves = try allocator.alloc(version.Hash, entries.len);    defer allocator.free(haves);    for (entries, haves) |entry, *hash| hash.* = entry.hash;    return try FetchRequest.init(allocator, wants, haves);}

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

zig
pub const createHistoryFetchRequest = sync.fetchRequestFromHistory;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433