UNPKG

typecql

Version:

ORM for CQL databases.

15 lines (14 loc) 555 B
import { Client } from 'cassandra-driver'; import { InsertOptions, InsertParams, WriteQueryFactory } from '../../../factory/write-query.factory'; import { Settings } from '../../utils/settings'; export declare function insertBatch<T>(client: Client, data: InsertParams<T>[], table: { primaryKeys: (keyof T)[]; tableName: string; schemaEntity: T; }, options: InsertOptions, writeFactory: WriteQueryFactory<T>, settings: Settings): Promise<T[] | { wasApplied: boolean; rows?: undefined; } | { rows: T[]; wasApplied: boolean; }>;