How to connect to postgresql from Nue? #238
Unanswered
avitkauskas
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Ahrr... All Nue code is frontend and goes into the browser. So I need something separate for the backend. Correct? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to build an app that reads data from the postgresql database.
I'd like to use this postgres client: https://github.com/porsager/postgres
Installed it with
bun install postgres
and created a filedb.ts
in the root of the project withimport postgres from 'postgres'
in it. I then import it in my models file to use sql there. But I get an error:What I do wrong?
Beta Was this translation helpful? Give feedback.
All reactions