target-clickhouse
Version:
A Singer target for Clickhouse
33 lines • 2.3 kB
JavaScript
"use strict";
exports.__esModule = true;
exports.Config = void 0;
var singer_node_1 = require("singer-node");
var Config = (function () {
function Config(_a) {
var database = _a.database, host = _a.host, password = _a.password, port = _a.port, username = _a.username, logging_level = _a.logging_level, subtable_separator = _a.subtable_separator, batch_size = _a.batch_size, deletion_batch_size = _a.deletion_batch_size, translate_values = _a.translate_values, insert_stream_timeout_sec = _a.insert_stream_timeout_sec, finalize_concurrency = _a.finalize_concurrency, extra_active_tables = _a.extra_active_tables;
this.log_level = singer_node_1.LogLevel.INFO;
this.subtable_separator = "__";
this.batch_size = 100;
this.deletion_batch_size = 100;
this.translate_values = false;
this.insert_stream_timeout_sec = 180;
this.finalize_concurrency = 3;
this.extra_active_tables = [];
this.database = database;
this.host = host;
this.log_level = logging_level ? singer_node_1.LogLevel[logging_level] : this.log_level;
this.password = password;
this.port = port;
this.username = username;
this.subtable_separator = subtable_separator !== null && subtable_separator !== void 0 ? subtable_separator : this.subtable_separator;
this.batch_size = batch_size !== null && batch_size !== void 0 ? batch_size : this.batch_size;
this.deletion_batch_size = deletion_batch_size !== null && deletion_batch_size !== void 0 ? deletion_batch_size : this.deletion_batch_size;
this.translate_values = translate_values !== null && translate_values !== void 0 ? translate_values : this.translate_values;
this.insert_stream_timeout_sec = insert_stream_timeout_sec !== null && insert_stream_timeout_sec !== void 0 ? insert_stream_timeout_sec : this.insert_stream_timeout_sec;
this.finalize_concurrency = finalize_concurrency !== null && finalize_concurrency !== void 0 ? finalize_concurrency : this.finalize_concurrency;
this.extra_active_tables = extra_active_tables !== null && extra_active_tables !== void 0 ? extra_active_tables : this.extra_active_tables;
}
return Config;
}());
exports.Config = Config;
//# sourceMappingURL=Config.js.map