Skip to content

Commit

Permalink
expose all previously exposes types (Row, Rows, Stmt, ...)
Browse files Browse the repository at this point in the history
  • Loading branch information
karlseguin committed Nov 13, 2024
1 parent 0873c6d commit 4f3001a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ var pool = try zqlite.Pool.init(allocator, .{
});
const c1 = pool.acquire();
defer pool.release(c1);
defer c1.release();
c1.execNoArgs(...);
```

Expand Down
8 changes: 7 additions & 1 deletion src/zqlite.zig
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
const std = @import("std");
pub const c = @cImport(@cInclude("sqlite3.h"));

pub const Conn = @import("conn.zig").Conn;
pub const Pool = @import("pool.zig").Pool;

const conn = @import("conn.zig");
pub const Conn = conn.Conn;
pub const Row = conn.Row;
pub const Rows = conn.Rows;
pub const Stmt = conn.Stmt;
pub const ColumnType = conn.ColumnType;

pub fn open(path: [*:0]const u8, flags: c_int) !Conn {
return Conn.init(path, flags);
}
Expand Down

0 comments on commit 4f3001a

Please sign in to comment.