From 7bcd721c0e0798bbc0057797254e36c73c6c0643 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Thu, 21 Oct 2021 20:53:24 -0700 Subject: [PATCH] zig- db- put types at top of file --- src/db/_db.zig | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/db/_db.zig b/src/db/_db.zig index d2ea18e..de73fef 100644 --- a/src/db/_db.zig +++ b/src/db/_db.zig @@ -7,6 +7,12 @@ const _internal = @import("./_internal.zig"); const db = &_internal.db; const Engine = _internal.Engine; +pub const Remote = @import("./Remote.zig").Remote; +pub const User = @import("./User.zig").User; +pub const Package = @import("./Package.zig").Package; +pub const Version = @import("./Version.zig").Version; +pub const Time = @import("./Time.zig").Time; + pub fn connect(alloc: *std.mem.Allocator, path: string) !void { const abspath = try std.fs.path.resolve(alloc, &.{path}); const nulpath = try extras.addSentinel(alloc, u8, abspath, 0); @@ -16,9 +22,3 @@ pub fn connect(alloc: *std.mem.Allocator, path: string) !void { pub fn close() void { db.close(); } - -pub const Remote = @import("./Remote.zig").Remote; -pub const User = @import("./User.zig").User; -pub const Package = @import("./Package.zig").Package; -pub const Version = @import("./Version.zig").Version; -pub const Time = @import("./Time.zig").Time;