diff options
| author | 2022-08-06 18:32:26 +0200 | |
|---|---|---|
| committer | 2022-08-06 18:32:29 +0200 | |
| commit | 36a778033da886b9775dd34323dd643e9de7ae01 (patch) | |
| tree | ed135aea7ba0aa46090c189809f8d87cc7c4e830 | |
| parent | ci: only run the workflow on a push to master (diff) | |
| download | zig-sqlite-private-statement.tar.gz zig-sqlite-private-statement.tar.xz zig-sqlite-private-statement.zip | |
make Statement and ParsedQuery privateprivate-statement
Users should use `StatementType` instead if they wish to refer to the
type of a statement, like this:
var stmt: StatementType(.{}, query) = try db.prepare(query);
defer stmt.deinit();
| -rw-r--r-- | sqlite.zig | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -9,7 +9,7 @@ const testing = std.testing; | |||
| 9 | 9 | ||
| 10 | const c = @import("c.zig").c; | 10 | const c = @import("c.zig").c; |
| 11 | 11 | ||
| 12 | pub const ParsedQuery = @import("query.zig").ParsedQuery; | 12 | const ParsedQuery = @import("query.zig").ParsedQuery; |
| 13 | 13 | ||
| 14 | const errors = @import("errors.zig"); | 14 | const errors = @import("errors.zig"); |
| 15 | pub const errorFromResultCode = errors.errorFromResultCode; | 15 | pub const errorFromResultCode = errors.errorFromResultCode; |
| @@ -2026,7 +2026,7 @@ pub const DynamicStatement = struct { | |||
| 2026 | /// | 2026 | /// |
| 2027 | /// Look at each function for more complete documentation. | 2027 | /// Look at each function for more complete documentation. |
| 2028 | /// | 2028 | /// |
| 2029 | pub fn Statement(comptime opts: StatementOptions, comptime query: anytype) type { | 2029 | fn Statement(comptime opts: StatementOptions, comptime query: anytype) type { |
| 2030 | _ = opts; | 2030 | _ = opts; |
| 2031 | 2031 | ||
| 2032 | return struct { | 2032 | return struct { |