We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36d311e commit 4624971Copy full SHA for 4624971
src/database.ts
@@ -50,6 +50,13 @@ export interface ViewDescription {
50
type: ViewType;
51
}
52
53
+export interface CreateDatabaseUser {
54
+ username: string
55
+ passwd?: string
56
+ active?: boolean
57
+ extra?: {[key: string]: any}
58
+}
59
+
60
const DATABASE_NOT_FOUND = 1228;
61
export class Database {
62
private _connection: Connection;
@@ -121,7 +128,7 @@ export class Database {
121
128
);
122
129
123
130
124
- createDatabase(databaseName: string, users?: string[]) {
131
+ createDatabase(databaseName: string, users?: CreateDatabaseUser[]): Promise<any> {
125
132
return this._connection.request(
126
133
{
127
134
method: "POST",
0 commit comments