-
Notifications
You must be signed in to change notification settings - Fork 1
Driver: Add page about Zig #419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
WalkthroughAdds Zig documentation: a new Changes
Sequence Diagram(s)sequenceDiagram
participant Dev as Developer (Zig)
participant Lib as pg.zig
participant DB as CrateDB
rect #E8F5E9
Dev->>Lib: initialize Pool(conn string, params)
Lib-->>Dev: Pool instance
end
rect #FFF3E0
Dev->>Lib: execute query (SELECT ...)
Lib->>DB: run SQL over Postgres wire protocol
DB-->>Lib: result rows
Lib-->>Dev: iterator/rows
end
rect #E3F2FD
Dev->>Lib: close Pool / cleanup
Lib-->>DB: close connections
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 inconclusive)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
4722c90
to
12be5ca
Compare
```shell | ||
zig fetch --save git+https://github.com/karlseguin/pg.zig#master | ||
zig build | ||
./zig-out/bin/example | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about zig run
? Maybe revisit on a future iteration?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like zig run
isn't able to pick up the dependencies properly. Maybe we need to extend the library search path of any kind?
$ zig run example.zig
example.zig:4:20: error: no module named 'pg' available within module 'example'
const pg = @import("pg");
^~~~
About
What the title says.
Preview
https://cratedb-guide--419.org.readthedocs.build/connect/zig/