From 4c5101d5f3a60c58190809166f1aa1eac2e7875f Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Wed, 27 Sep 2023 19:44:53 +0100 Subject: Move conn and config to their own folders analogous to pgx --- src/conn/config.zig | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/conn/config.zig (limited to 'src/conn/config.zig') diff --git a/src/conn/config.zig b/src/conn/config.zig new file mode 100644 index 0000000..b4e7cff --- /dev/null +++ b/src/conn/config.zig @@ -0,0 +1,13 @@ +const std = @import("std"); +const SSHashMap = std.StringHashMap([]const u8); + +const Config = @This(); + +allocator: std.mem.Allocator, +address: union(enum){ + net: std.net.Address, + unix: []const u8, +}, +database: ?[]const u8 = null, +user: []const u8, +password: ?[]const u8 = null, -- cgit v1.2.3-ZIG