Skip to documentation
SLOP

tiny.sql.HistoryRemoteConfig

Reference tiny.sql HistoryRemoteConfig

Defined in sync.

API (6)

Actions

Public operations.

Fields and members

Public fields and members.

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

Source

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

zig
pub const RemoteConfig = struct {    allocator: Allocator,    remotes: []RemoteConfigEntry,    pub fn init(allocator: Allocator, remotes: []const RemoteConfigEntry) Error!RemoteConfig {        try validateRemoteEntries(remotes);        const owned = try allocator.alloc(RemoteConfigEntry, remotes.len);        var count: usize = 0;        errdefer {            for (owned[0..count]) |*remote| remote.deinit(allocator);            if (owned.len != 0) allocator.free(owned);        }        for (remotes, owned) |remote, *target| {            target.* = try RemoteConfigEntry.initWithDefaultBranch(allocator, remote.name, remote.history_path, remote.lock_path, remote.default_branch);            count += 1;        }        return .{            .allocator = allocator,            .remotes = owned,        };    }    pub fn deinit(self: *RemoteConfig) void {        for (self.remotes) |*remote| remote.deinit(self.allocator);        if (self.remotes.len != 0) self.allocator.free(self.remotes);        self.* = undefined;    }    pub fn find(self: *const RemoteConfig, name: []const u8) ?*const RemoteConfigEntry {        for (self.remotes) |*remote| {            if (std.mem.eql(u8, remote.name, name)) return remote;        }        return null;    }    pub fn fileRemote(self: *const RemoteConfig, io: std.Io, dir: std.Io.Dir, name: []const u8) Error!FileRemote {        const remote = self.find(name) orelse return error.RemoteNotFound;        return remote.fileRemote(io, dir);    }};

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

zig
pub const HistoryRemoteConfig = sync.RemoteConfig;
Called byCallsNo direct callsprivate sourcelib.sql.src.repository.remoteOwnertest sourcelib.sql.src.synctest: sync remote config stores named...HistoryRemoteConfigdeinit
Static calls · unresolved targets: 1 · external targets: 1.
Called byCallsNo direct callerssync.RemoteConfigfindHistoryRemoteConfigfileRemote
Static calls · unresolved targets: 0 · external targets: 1.
Called byCallsNo direct callsprivate sourcelib.sql.src.repository.remoteOwnersync.RemoteConfigfileRemoteHistoryRemoteConfigfind
Static calls · unresolved targets: 0 · external targets: 0.
Called byCallsprivate sourcelib.sql.src.repository.remoteOwnertest sourcelib.sql.src.synctest: sync remote config stores named...sync.RemoteConfigEntryinitWithDefaultBranchprivate sourcelib.sql.src.syncvalidateRemoteEntriesHistoryRemoteConfiginit
Static calls · unresolved targets: 0 · external targets: 3.

Audit

Definitions5
Public names10
Members2
Version26.7.0
Revisiondaab053ee433