Psql Native PostgresQL client library with Zig, stable and upstream support

gitlab link

I have created a posqtgresql client for zig with support for zig stable in dev-zig-stable branche
and zig upstream in dev-zig-upstream

how can I make it std-like in its style and code structure?

I haven’t reviewed your project, but I’d say that’s a question best answered by yourself and applied during design and implementation rather than after the fact.

In general:

  • Format the code using the Zig formatter
  • Make your containers unmanaged: don’t embed allocators.
  • Use the documented naming conventions
  • Prefer DOD over OOP

However “being like std” really shouldn’t be the primary hoal. The primary goals should be simplicity, clarity, and efficiency in the applicable domain.

1 Like