tiny.sql.readHistoryBranchUpstreamConfig
Defined in sync.
Source
Source: lib/sql/src/sync.zig:626
zig
pub fn readBranchUpstreamConfig(allocator: Allocator, dir: std.Io.Dir, options: BranchUpstreamOptions) Error!BranchUpstreamConfig { const bytes = dir.readFileAlloc(options.io, options.path, allocator, .limited(options.max_bytes)) catch |err| switch (err) { error.FileNotFound => { return .{ .allocator = allocator, .upstreams = &.{}, }; }, else => return err, }; defer allocator.free(bytes); return try decodeBranchUpstreamConfig(allocator, bytes);}Source: lib/sql/src/root.zig:122
zig
pub const readHistoryBranchUpstreamConfig = sync.readBranchUpstreamConfig;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |