เอกสารนี้แปลโดย AI หากมีข้อมูลที่ไม่ถูกต้อง โปรดดูเวอร์ชันภาษาอังกฤษ
ICollectionManager เป็นอินเทอร์เฟซที่ใช้สำหรับจัดการอินสแตนซ์ของ คอลเลกชัน ใน แหล่งข้อมูล ครับ/ค่ะ
ใช้สำหรับลงทะเบียนประเภทฟิลด์ใน คอลเลกชัน ครับ/ค่ะ
registerFieldTypes(types: Record<string, any>): voidใช้สำหรับลงทะเบียน Interface ของ คอลเลกชัน ครับ/ค่ะ
registerFieldInterfaces(interfaces: Record<string, any>): voidใช้สำหรับลงทะเบียน Collection Template ครับ/ค่ะ
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>