Can't get started nim with a simple postgres querying

2024-07-31 Thread bajith
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.

Can't get started nim with a simple postgres querying

2024-07-30 Thread PMunch
That's because you're missing the shared library libpq used by the postures bindings. `brew install libpq` should sort you out.

Can't get started nim with a simple postgres querying

2024-07-30 Thread surrealist
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

Can't get started nim with a simple postgres querying

2024-07-30 Thread surrealist
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