Skip to content

Commit 4624971

Browse files
committed
Fix #561
1 parent 36d311e commit 4624971

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/database.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ export interface ViewDescription {
5050
type: ViewType;
5151
}
5252

53+
export interface CreateDatabaseUser {
54+
username: string
55+
passwd?: string
56+
active?: boolean
57+
extra?: {[key: string]: any}
58+
}
59+
5360
const DATABASE_NOT_FOUND = 1228;
5461
export class Database {
5562
private _connection: Connection;
@@ -121,7 +128,7 @@ export class Database {
121128
);
122129
}
123130

124-
createDatabase(databaseName: string, users?: string[]) {
131+
createDatabase(databaseName: string, users?: CreateDatabaseUser[]): Promise<any> {
125132
return this._connection.request(
126133
{
127134
method: "POST",

0 commit comments

Comments
 (0)