aboutsummaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
authorMartin Ashby <martin@ashbysoft.com>2023-09-23 15:18:38 +0100
committerMartin Ashby <martin@ashbysoft.com>2023-09-23 15:18:38 +0100
commit5a91b37ee7dd36db52dfde1727b780ec3fa4c67d (patch)
treed17a1a8449ecd48fcf67f93edf7ba16c99974e6a /src/config.zig
parentc3c45287396569a96107c9b1413ac181f7197a6e (diff)
downloadpgz-5a91b37ee7dd36db52dfde1727b780ec3fa4c67d.tar.gz
pgz-5a91b37ee7dd36db52dfde1727b780ec3fa4c67d.tar.bz2
pgz-5a91b37ee7dd36db52dfde1727b780ec3fa4c67d.tar.xz
pgz-5a91b37ee7dd36db52dfde1727b780ec3fa4c67d.zip
Add error_response
Start adding connection abstraction
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/config.zig b/src/config.zig
new file mode 100644
index 0000000..eb2a52b
--- /dev/null
+++ b/src/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,
+user: []const u8,
+password: []const u8,