feat: mongodb readyState

This commit is contained in:
arashsheyda
2023-04-25 16:25:42 +03:00
parent 58ca500acc
commit 150954290c
4 changed files with 44 additions and 3 deletions

View File

@ -1,5 +1,6 @@
export interface ServerFunctions {
// Database - collections
readyState(): Promise<any>
createCollection(name: string): Promise<any>
listCollections(): Promise<any>
getCollection(name: string): Promise<any>
@ -27,6 +28,6 @@ export interface Collection {
}
export interface Resource {
type: string
type: 'index' | 'create' | 'show' | 'put' | 'delete'
by?: string
}