UNPKG

@sqb/connect

Version:

Multi-dialect database connection framework written with TypeScript

14 lines (13 loc) 666 B
import { Type } from 'ts-gems'; import { TypeResolver, TypeThunk } from '../orm.type.js'; import { AssociationNode } from './association-node.js'; export declare class LinkChain<T> { target: TypeThunk<T>; first: AssociationNode; current: AssociationNode; constructor(target: TypeThunk<T>, targetKey?: keyof T, sourceKey?: string, many?: boolean); where(conditions: object | object[]): this; linkToOne<K>(target: Type<K> | TypeResolver<K>, targetColumn?: keyof K, parentColumn?: keyof T): LinkChain<K>; linkToMany<K>(target: Type<K> | TypeResolver<K>, targetColumn?: keyof K, parentColumn?: keyof T): LinkChain<K>; private _newNode; }