Compare commits
No commits in common. "main" and "v0.3.1" have entirely different histories.
3 changed files with 4 additions and 28 deletions
|
@ -1,24 +0,0 @@
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- "*"
|
|
||||||
jobs:
|
|
||||||
build_docs:
|
|
||||||
runs-on: docker
|
|
||||||
container:
|
|
||||||
image: docker.zeptotech.net/zeptotech/zig-yarn:1.1.0
|
|
||||||
credentials:
|
|
||||||
username: ${{ vars.DOCKER_REGISTRY_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- run: mkdir -p artifact/api
|
|
||||||
- run: (cd docs && corepack enable && yarn install)
|
|
||||||
- run: (cd docs && yarn docs:build)
|
|
||||||
- run: mv docs/.vitepress/dist/* artifact
|
|
||||||
- run: /zig/zig build docs
|
|
||||||
- run: mv zig-out/docs/* artifact/api
|
|
||||||
- uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: docs.zip
|
|
||||||
path: artifact
|
|
|
@ -196,14 +196,14 @@ pub fn RepositoryInsert(comptime Model: type, comptime TableShape: type, comptim
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set selected columns for RETURNING clause.
|
/// Set selected columns for RETURNING clause.
|
||||||
pub fn returningColumns(self: *Self, _select: []const []const u8) !void {
|
pub fn returningColumns(self: *Self, _select: []const []const u8) void {
|
||||||
if (_select.len == 0) {
|
if (_select.len == 0) {
|
||||||
return ZrmError.AtLeastOneSelectionRequired;
|
return ZrmError.AtLeastOneSelectionRequired;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.returning(.{
|
self.returning(.{
|
||||||
// Join selected columns.
|
// Join selected columns.
|
||||||
.sql = try std.mem.join(self.arena.allocator(), ", ", _select),
|
.sql = std.mem.join(self.arena.allocator(), ", ", _select),
|
||||||
.params = &[_]_sql.RawQueryParameter{}, // No parameters.
|
.params = &[_]_sql.RawQueryParameter{}, // No parameters.
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -153,14 +153,14 @@ pub fn RepositoryUpdate(comptime Model: type, comptime TableShape: type, comptim
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Set selected columns for RETURNING clause.
|
/// Set selected columns for RETURNING clause.
|
||||||
pub fn returningColumns(self: *Self, _select: []const []const u8) !void {
|
pub fn returningColumns(self: *Self, _select: []const []const u8) void {
|
||||||
if (_select.len == 0) {
|
if (_select.len == 0) {
|
||||||
return ZrmError.AtLeastOneSelectionRequired;
|
return ZrmError.AtLeastOneSelectionRequired;
|
||||||
}
|
}
|
||||||
|
|
||||||
self.returning(.{
|
self.returning(.{
|
||||||
// Join selected columns.
|
// Join selected columns.
|
||||||
.sql = try std.mem.join(self.arena.allocator(), ", ", _select),
|
.sql = std.mem.join(self.arena.allocator(), ", ", _select),
|
||||||
.params = &[_]_sql.RawQueryParameter{}, // No parameters.
|
.params = &[_]_sql.RawQueryParameter{}, // No parameters.
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue