このドキュメントはAIによって翻訳されました。不正確な情報については、英語版をご参照ください
ICollectionManager インターフェースは、データソースのコレクション インスタンスを管理するために使用されます。
コレクション 内のフィールドタイプを登録します。
registerFieldTypes(types: Record<string, any>): voidコレクション のインターフェース を登録します。
registerFieldInterfaces(interfaces: Record<string, any>): voidコレクションテンプレート を登録します。
registerCollectionTemplates(templates: Record<string, any>): voidモデル を登録します。
registerModels(models: Record<string, any>): voidリポジトリ を登録します。
registerRepositories(repositories: Record<string, any>): void登録済みのリポジトリ インスタンスを取得します。
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>リポジトリ インスタンスを取得します。
getRepository(name: string, sourceId?: string | number): IRepositoryデータソースを同期します。ロジックはサブクラスによって実装されます。
sync(): Promise<void>