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

PR: on*Change methods #36

Open
amilajack opened this issue Apr 16, 2018 · 0 comments
Open

PR: on*Change methods #36

amilajack opened this issue Apr 16, 2018 · 0 comments
Assignees

Comments

@amilajack
Copy link
Member

amilajack commented Apr 16, 2018

  • onTableChange: Define a callback to fire when a table is changed
  • onDatabaseChange: Define a callback to fire when a database is changed
type cbType = (dbName: string, tableName: string) => Promise<void>;
type onTableChange = (cb: cbType) => Promise<void>;
type onDatabaseChange = (cb: cbType) => Promise<void>;

Use cases:

  • re-render the graph on change of the database
  • let the UI define a callback to update the tables, schema definition, etc when a table changes
@amilajack amilajack self-assigned this Apr 16, 2018
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