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

Typescript example with postgresql. #47

Open
francelwebdev opened this issue Jul 7, 2024 · 1 comment
Open

Typescript example with postgresql. #47

francelwebdev opened this issue Jul 7, 2024 · 1 comment

Comments

@francelwebdev
Copy link

Typescript example with postgresql.

@kiddyuchina
Copy link
Member

You can refer to https://github.com/sutandojs/sutando-examples/tree/main/typescript/rest-hono

Some changes need to be made:

  1. Install the pg
  2. Modify the connection information in the seed.ts/migrate.ts/index.ts file, such as:
sutando.addConnection({
  client: 'pg',
    connection: {
    host: 'host',
    user: 'user',
    database: 'dashbase',
    password: 'password',
    ssl: { rejectUnauthorized: false },
  },
});

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

2 participants