From 5a91b37ee7dd36db52dfde1727b780ec3fa4c67d Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Sat, 23 Sep 2023 15:18:38 +0100 Subject: Add error_response Start adding connection abstraction --- src/config.zig | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/config.zig (limited to 'src/config.zig') 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, -- cgit v1.2.3-ZIG