Closed marcosadriano05 closed 2 years ago
Hi @marcosadriano05 ! This seems to be an issue with how you use the postgres client. I would take a look at the documentation for deno postgres to see if you are passing the arguments wrong. Maybe you can try with the object syntax instead?
const result = await client.queryArray({
args: [10, 20],
text: "SELECT ID, NAME FROM PEOPLE WHERE AGE > $1 AND AGE < $2",
});
I will close this issue as it is not a bug with Nessie.
Operating System
Ubuntu 20.04.4 LTS
Deno version
1.24.0
Nessie version
2.0.6
Bug description
I try to seed the database with some fake data to run integration tests, in the seed file, i try to import the Json file with the data and iterates over the array and save on the database on each value as the code below:
When i run the seed command, this is the output:
The migrations run command works, but the seed don't. Is my seed code wrong? Maybe is the Json file import that Nessie don't suport.
Steps to reproduce
Steps to reproduce behavior:
Aditional information
No response