Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create custom database provider without ORM #6

Open
finzaiko opened this issue Feb 18, 2020 · 0 comments
Open

Create custom database provider without ORM #6

finzaiko opened this issue Feb 18, 2020 · 0 comments

Comments

@finzaiko
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant