Skip to content

Create custom database provider without ORM #6

Description

@finzaiko

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions