aboutsummaryrefslogtreecommitdiff
path: root/src/conn/config.zig
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2023-09-27 19:44:53 +0100
committerMartin Ashby <martin@ashbysoft.com>2023-09-27 19:44:53 +0100
commit4c5101d5f3a60c58190809166f1aa1eac2e7875f (patch)
tree3273264492d637b26642e36bdd3e898421390a5d /src/conn/config.zig
parent10cbd00671f7144122f1d79a3ac1f67cbb9a51c6 (diff)
downloadpgz-4c5101d5f3a60c58190809166f1aa1eac2e7875f.tar.gz
pgz-4c5101d5f3a60c58190809166f1aa1eac2e7875f.tar.bz2
pgz-4c5101d5f3a60c58190809166f1aa1eac2e7875f.tar.xz
pgz-4c5101d5f3a60c58190809166f1aa1eac2e7875f.zip
Move conn and config to their own folders analogous to pgx
Diffstat (limited to 'src/conn/config.zig')
-rw-r--r--src/conn/config.zig13
1 files changed, 13 insertions, 0 deletions
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,