Executing raw Sql query
Is it possible to execute sql in postgres database:
string query = "select * from users";
await db.execute(query)
4 Replies
thx,
i have written this code in order to execute a sql query:
and when i call the function for this query:
i get [{"user":"default"}]
which i also get in the drizzle studio although i do have rows in the user table:
is there a way to fix that (note, it does that only for the user table not any other table)
Hmm, I can't help you further. I've started using Drizzle a couple days ago and just happened to have made a raw sql query, so I had the answer to your question. Regarding your other issue, unfortunately I can't spot the error 🫤
ok thx anyways