diff options
| author | physcik <mynameisgennadiy@vk.com> | 2026-04-14 01:06:17 +0500 |
|---|---|---|
| committer | physcik <mynameisgennadiy@vk.com> | 2026-04-14 01:06:17 +0500 |
| commit | cc133dd2e36c9eee7f04a29322e5a18181971189 (patch) | |
| tree | 09cc108b5410aa107bf07129c3b13f5eab6f43dd /backend/build.zig | |
| parent | a1473d2474c93e1be9a786ced3b40bbdff45fff6 (diff) | |
db connection
Diffstat (limited to 'backend/build.zig')
| -rw-r--r-- | backend/build.zig | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/backend/build.zig b/backend/build.zig index 87d6348..648b332 100644 --- a/backend/build.zig +++ b/backend/build.zig @@ -96,6 +96,18 @@ pub fn build(b: *std.Build) void { exe.root_module.addImport("httpz", httpz.module("httpz")); + + // postgres driver + + const pg_module = b.dependency("pg", .{}).module("pg"); + + exe.root_module.addImport("pg", pg_module); + + // .env + + const dotenv_module = b.dependency("dotenv", .{}).module("dotenv"); + exe.root_module.addImport("dotenv", dotenv_module); + // This creates a top level step. Top level steps have a name and can be // invoked by name when running `zig build` (e.g. `zig build run`). // This will evaluate the `run` step rather than the default step. |
