Implement connection string tab for postgres (#1334)

This commit is contained in:
victor-meng
2022-10-05 17:32:05 -07:00
committed by GitHub
parent 7c77ffda6c
commit 81dfd76198
5 changed files with 168 additions and 2 deletions

View File

@@ -26,6 +26,20 @@ export interface CollectionCreationDefaults {
throughput: ThroughputDefaults;
}
export interface Node {
text: string;
value: string;
ariaLabel: string;
}
export interface PostgresConnectionStrParams {
adminLogin: string;
enablePublicIpAccess: boolean;
nodes: Node[];
isMarlinServerGroup: boolean;
isFreeTier: boolean;
}
interface UserContext {
readonly authType?: AuthType;
readonly masterKey?: string;
@@ -52,6 +66,7 @@ interface UserContext {
collectionId: string;
partitionKey?: string;
};
readonly postgresConnectionStrParams?: PostgresConnectionStrParams;
collectionCreationDefaults: CollectionCreationDefaults;
}