Skip to content

Commit

Permalink
zig- db- put types at top of file
Browse files Browse the repository at this point in the history
  • Loading branch information
nektro committed Oct 22, 2021
1 parent 3eb7caa commit 7bcd721
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/db/_db.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;

0 comments on commit 7bcd721

Please sign in to comment.