-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
There was a problem hiding this 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!'); |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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') { |
There was a problem hiding this comment.
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
?
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? |
No description provided.