The reply from @PMunch should work. Working with Postgres or other SQL DBMSs is
a breeze in Nim.
Two weeks ago, I finished a task at my work in which I wrote almost 2 million
rows into a Postgres database using Nim, by reading and processing a large
Excel file (117MB) with 0.5 million rows.
That's because you're missing the shared library libpq used by the postures
bindings. `brew install libpq` should sort you out.
After bypass the warning
nim c --passL:"-Wl,-no_warn_duplicate_libraries" dbtest.nim
Run
Got this error.
$ ./dbtest
could not load: libpq.dylib
(compile with -d:nimDebugDlOpen for more information)
Run
It's my first day using Nim. It looks great from my Python perspective, but I'm
stuck and finding it difficult to perform a simple database query.
I installed Nim with `brew install nim` ('m using a macbook M1). The
hello-world app built and ran just fine.
I want to execute a simple SELECT stat