מסמך זה תורגם על ידי בינה מלאכותית. לכל אי דיוק, אנא עיין בגרסה האנגלית
ממשק ICollectionManager משמש לניהול מופעי אוסף של מקור נתונים.
רושם סוגי שדות בתוך אוסף.
registerFieldTypes(types: Record<string, any>): voidרושם את ה-Interface של אוסף.
registerFieldInterfaces(interfaces: Record<string, any>): voidרושם תבנית אוסף.
registerCollectionTemplates(templates: Record<string, any>): voidרושם Model.
registerModels(models: Record<string, any>): voidרושם Repository.
registerRepositories(repositories: Record<string, any>): voidמקבל מופע Repository רשום.
getRegisteredRepository(key: string): IRepositoryמגדיר אוסף.
defineCollection(options: CollectionOptions): ICollectionמשנה מאפיינים של אוסף קיים.
extendCollection(collectionOptions: CollectionOptions, mergeOptions?: MergeOptions): ICollectionבודק אם אוסף קיים.
hasCollection(name: string): booleanמקבל מופע אוסף.
getCollection(name: string): ICollectionמקבל את כל מופעי ה-אוסף.
getCollections(): Array<ICollection>מקבל מופע Repository.
getRepository(name: string, sourceId?: string | number): IRepositoryמסנכרן את מקור הנתונים. הלוגיקה מיושמת על ידי מחלקות יורשות.
sync(): Promise<void>