bigquery-client
Version:
A feature-rich Node.js client for Google BigQuery with support for CRUD operations, transactions, query building, and advanced features like aggregate functions, pagination, and logging.
29 lines (28 loc) • 817 B
TypeScript
import { BigQueryClient } from '../core/BigQueryClient';
declare global {
interface Reflect {
defineMetadata(metadataKey: any, metadataValue: any, target: Object): void;
getMetadata(metadataKey: any, target: Object): any;
}
}
export declare class BaseRepository<T> {
private entity;
private client;
constructor(entity: {
new (): T;
}, client: BigQueryClient);
getTableName(): string;
getColumns(): {
propertyKey: string;
columnName: string;
}[];
findAll(): Promise<T[]>;
findById(id: any): Promise<T | null>;
create(entity: Partial<T>): Promise<void>;
update(id: any, updateFields: Partial<T>): Promise<void>;
delete(id: any): Promise<void>;
getSelectQuery(): {
query: string;
params: any[];
};
}