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

chore: add schema option #4

Closed
wants to merge 1 commit into from
Closed

chore: add schema option #4

wants to merge 1 commit into from

Conversation

matex1024
Copy link

No description provided.

@matex1024 matex1024 requested a review from dziraf April 20, 2023 12:57
Copy link
Contributor

@dziraf dziraf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matex1024 looks like build is failing in CI

@@ -42,6 +42,10 @@ export class BaseDatabaseParser {
throw new Error('Implement "parse" method for your database parser!');
}

public async getSchemas(): Promise<string[]> {
throw new Error('Implement "getSchema" method for your database parser!');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getSchema or getSchemas?

@@ -73,6 +73,7 @@ export class PostgresParser extends BaseDatabaseParser {
public static dialects = ['postgresql' as const];

public async parse() {
const schemaName = await this.getSchemas();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'schemaName' is assigned a value but never used

@@ -85,11 +86,10 @@ export class PostgresParser extends BaseDatabaseParser {
return new DatabaseMetadata(this.connectionOptions.database, resourceMap);
}

public async getTables() {
const query = await this.knex.raw(`
public async getTables(schema = 'public') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why schema arg, shouldn't it just use this.schemaName?

@devjiwonchoi
Copy link

devjiwonchoi commented May 4, 2023

Hi, I'm the one who brought up this issue and realized that it hasn't been resolved. Regardless of the steps of contribution, if you all don't mind may I participate to solve this issue?

@dziraf dziraf closed this May 24, 2023
@matex1024 matex1024 deleted the chore/fix-schema-add branch May 24, 2023 12:45
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

Successfully merging this pull request may close these issues.

3 participants