mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
35 lines
756 B
Plaintext
35 lines
756 B
Plaintext
|
|
WindowContext context = argObj("windowContext");
|
|
|
|
DB db = context.get("db");
|
|
DB.Result databases = db.execute("show table status from " + arg("dbName"));
|
|
|
|
Text banner = context.get("/mainTabs/Database/toolbar/banner");
|
|
banner.setText("Database " + arg("dbName") + ": " + databases.size() + " table(s)");
|
|
|
|
banner = context.get("/mainTabs/Query/toolbar/banner");
|
|
banner.setText("SQL query on database: " + arg("dbName"));
|
|
|
|
TableUtils.populate((Table)context.get("/mainTabs/Database/table"), databases);
|
|
|
|
//let the refresh button know what to do
|
|
Panel tab = context.get("/mainTabs/Database");
|
|
tab.setProperty("refreshScript", "loadDatabaseInfo");
|
|
tab.setProperty("refreshArgs", args());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|