mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-05-24 17:24:55 +01:00
Handle PostgresShell Started
This commit is contained in:
parent
0ba704b592
commit
66ca9c9557
@ -17,13 +17,17 @@ export class JupyterLabAppFactory {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private isMongoShellStarted(content: string | undefined) {
|
private isMongoShellStarted(content: string | undefined) {
|
||||||
this.isShellStarted = content?.includes("MongoDB shell version") || content?.includes("citus=>");
|
this.isShellStarted = content?.includes("MongoDB shell version");
|
||||||
}
|
}
|
||||||
|
|
||||||
private isCassandraShellStarted(content: string | undefined) {
|
private isCassandraShellStarted(content: string | undefined) {
|
||||||
this.isShellStarted = content?.includes("Connected to") && content?.includes("cqlsh");
|
this.isShellStarted = content?.includes("Connected to") && content?.includes("cqlsh");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private isPostgresShellStarted(content: string | undefined) {
|
||||||
|
this.isShellStarted = content?.includes("cqlsh");
|
||||||
|
}
|
||||||
|
|
||||||
constructor(closeTab: () => void) {
|
constructor(closeTab: () => void) {
|
||||||
this.onShellExited = closeTab;
|
this.onShellExited = closeTab;
|
||||||
this.isShellStarted = false;
|
this.isShellStarted = false;
|
||||||
@ -36,6 +40,9 @@ export class JupyterLabAppFactory {
|
|||||||
case "Cassandra":
|
case "Cassandra":
|
||||||
this.checkShellStarted = this.isCassandraShellStarted;
|
this.checkShellStarted = this.isCassandraShellStarted;
|
||||||
break;
|
break;
|
||||||
|
case "Postgres":
|
||||||
|
this.checkShellStarted = this.isPostgresShellStarted;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user