UNPKG

@athenna/database

Version:

The Athenna database handler for SQL/NoSQL.

25 lines (24 loc) 725 B
/** * @athenna/database * * (c) João Lenon <lenon@athenna.io> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import type { BelongsToOptions } from '#src/types'; import type { BaseModel } from '#src/models/BaseModel'; export declare class BelongsToRelation { /** * Get the options with defined default values. */ private static options; /** * Load a belongs to relation. */ static load(model: BaseModel, relation: BelongsToOptions): Promise<any>; /** * Load all models that belongs to relation. */ static loadAll(models: BaseModel[], relation: BelongsToOptions): Promise<any[]>; }