nestjs-recipe icon indicating copy to clipboard operation
nestjs-recipe copied to clipboard

Create custom database provider without ORM

Open finzaiko opened this issue 5 years ago • 0 comments

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.

finzaiko avatar Feb 18 '20 05:02 finzaiko