diff options
Diffstat (limited to 'src/db.zig')
-rw-r--r-- | src/db.zig | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -38,3 +38,10 @@ pub fn deinit(self: *Self) void{ pub fn connect(self: Self) !Connection { return Connection.init(self); } + +test "Open and connect" { + var database = try Self.init(":memory:"); + defer database.deinit(); + var connection = try database.connect(); + defer connection.deinit(); +} |