UNPKG

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.

40 lines (39 loc) 893 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AGGREGATE_FUNCTIONS = exports.QUERY_TIMEOUT = exports.DEFAULT_LOGGING_CONFIG = exports.DEFAULT_CACHE_CONFIG = exports.DEFAULT_POOL_CONFIG = void 0; exports.DEFAULT_POOL_CONFIG = { min: 1, max: 10, idleTimeoutMillis: 30000, acquireTimeoutMillis: 30000 }; exports.DEFAULT_CACHE_CONFIG = { enabled: false, ttl: 300000, // 5 minutes maxSize: 1000 }; exports.DEFAULT_LOGGING_CONFIG = { enabled: true, level: 'info', maxEntries: 1000 }; exports.QUERY_TIMEOUT = 30000; // 30 seconds exports.AGGREGATE_FUNCTIONS = new Set([ 'SUM', 'AVG', 'COUNT', 'MIN', 'MAX', 'ARRAY_AGG', 'STRING_AGG', 'BIT_AND', 'BIT_OR', 'BIT_XOR', 'LOGICAL_AND', 'LOGICAL_OR', 'ANY_VALUE', 'COUNTIF', 'GROUPING', 'MAX_BY', 'MIN_BY' ]);