nestjs-recipe
nestjs-recipe copied to clipboard
Create custom database provider without ORM
Hi Ariel, Thanks for your great Udemy tutorial really easy to understand, How can I create custom database provider without using TypeORM, pure raw sql command. I try to follow this but not really understand to start create the provider I can do something like this in my service:
pool = new Pool(dbConfig);
getAll(): any {
return this.pool.query(`SELECT * FROM todo`);
}
but how to create a simple datatable module handle ? or could you update your Udemy course Thanks.