UNPKG

typecql

Version:

ORM for CQL databases.

15 lines (14 loc) 547 B
import { Client } from 'cassandra-driver'; import { InsertOptions, InsertParams, WriteQueryFactory } from '../../../factory/write-query.factory'; import { Settings } from '../../utils/settings'; export declare function insertFetch<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; row?: undefined; } | { row: T; wasApplied: boolean; }>;