@vulcan-sql/core
Version:
Core package of VulcanSQL
24 lines • 1.65 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultCacheLayerFolderPath = exports.vulcanCacheSchemaName = exports.cacheLayerPersistentFileName = exports.cacheProfileName = exports.CacheLayerStoreLoaderType = exports.CacheLayerStoreFormatType = void 0;
const os_1 = require("os");
const path = require("path");
var CacheLayerStoreFormatType;
(function (CacheLayerStoreFormatType) {
CacheLayerStoreFormatType["parquet"] = "parquet";
})(CacheLayerStoreFormatType = exports.CacheLayerStoreFormatType || (exports.CacheLayerStoreFormatType = {}));
var CacheLayerStoreLoaderType;
(function (CacheLayerStoreLoaderType) {
CacheLayerStoreLoaderType["duckdb"] = "duckdb";
})(CacheLayerStoreLoaderType = exports.CacheLayerStoreLoaderType || (exports.CacheLayerStoreLoaderType = {}));
// The cache layer profile name is used to load the cache data to table name from cache files
exports.cacheProfileName = 'vulcan.cache';
// The cache layer persistent file name, if the file name is set to ":memory:", it will use in-memory database
exports.cacheLayerPersistentFileName = process.env['VULCAN_CACHE_LAYER_PERSISTENT_FILE_NAME'] ||
'vulcan_caching_layer.db';
// The schema name for vulcan used to create table when loading cache files to cache data source
exports.vulcanCacheSchemaName = 'vulcan';
// The default folder path to store the cache files
// The path.resolve(tmpdir(), 'vulcan') could be the root if other places also need to create temp folder default in the future.
exports.defaultCacheLayerFolderPath = path.resolve((0, os_1.tmpdir)(), 'vulcan', 'cache');
//# sourceMappingURL=cacheLayerOptions.js.map