Skip to content

Conversation

@kbarbounakis
Copy link
Contributor

@kbarbounakis kbarbounakis commented Feb 19, 2024

This PR implements two extra helpers for getting tables and views as list. PostgreSQLAdapter.tables() returns a helper for getting the collection of tables:

interface DataAdapterTables {
    list(callback: (err: Error, result: { name: string, owner?: string, schema?: string }[]) => void): void;
    listAsync(): Promise<{ name: string, owner?: string, schema?: string }[]>;
}

and PostgreSQLAdapter.views() returns a helper for getting the collection of views:

interface DataAdapterViews {
    list(callback: (err: Error, result: { name: string, owner?: string, schema?: string }[]) => void): void;
    listAsync(): Promise<{ name: string, owner?: string, schema?: string }[]>;
}

@kbarbounakis kbarbounakis changed the title Get tables and views collection Get tables and views Feb 19, 2024
@kbarbounakis kbarbounakis merged commit 5dab4cc into themost-framework:main Feb 19, 2024
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.

1 participant