- Preparing search index...
- The search index is not available
Deepkit
Interface BrowserControllerInterface
Hierarchy
- BrowserControllerInterface
Methods
create
- create(dbName: string, entityName: string): Promise<any>
-
Parameters
-
dbName: string
-
entityName: string
Returns Promise<any>
getCount
- getCount(dbName: string, entityName: string, filter: {
[name: string]: any;
}): Promise<number>
-
Parameters
-
dbName: string
-
entityName: string
-
filter: {
[name: string]: any;
}
Returns Promise<number>
getItems
- getItems(dbName: string, entityName: string, filter: {
[name: string]: any;
}, sort: {
[name: string]: any;
}, limit: number, skip: number): Promise<{
executionTime: number;
items: any[];
}>
-
Parameters
-
dbName: string
-
entityName: string
-
filter: {
[name: string]: any;
}
-
sort: {
[name: string]: any;
}
-
limit: number
-
skip: number
Returns Promise<{
executionTime: number;
items: any[];
}>
getMigrations
- getMigrations(name: string): Promise<{
[name: string]: {
diff: string;
sql: string[];
};
}>
-
Returns Promise<{
[name: string]: {
diff: string;
sql: string[];
};
}>
migrate
- migrate(name: string): Promise<void>
-
Returns Promise<void>
query
- query(dbName: string, entityName: string, query: string): Promise<QueryResult>
-
Parameters
-
dbName: string
-
entityName: string
-
query: string
resetAllTables
- resetAllTables(name: string): Promise<void>
-
Returns Promise<void>
seed
- seed(dbName: string, seed: SeedDatabase): Promise<void>
-
Returns Promise<void>