NG1NDEX
Server IP : 150.95.80.236  /  Your IP : 3.12.152.194
Web Server : Apache
System : Linux host-150-95-80-236 3.10.0-1160.105.1.el7.x86_64 #1 SMP Thu Dec 7 15:39:45 UTC 2023 x86_64
User : social-telecare ( 10000)
PHP Version : 7.4.33
Disable Function : opcache_get_status
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/vhosts/pcu.in.th/api-uat.pcu.in.th/node_modules/@sqltools/formatter/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : /var/www/vhosts/pcu.in.th/api-uat.pcu.in.th/node_modules/@sqltools/formatter/lib//sqlFormatter.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
exports.__esModule = true;
exports.tokenize = exports.format = void 0;
var Db2Formatter_1 = __importDefault(require("./languages/Db2Formatter"));
var N1qlFormatter_1 = __importDefault(require("./languages/N1qlFormatter"));
var PlSqlFormatter_1 = __importDefault(require("./languages/PlSqlFormatter"));
var StandardSqlFormatter_1 = __importDefault(require("./languages/StandardSqlFormatter"));
var format = function (query, cfg) {
    if (cfg === void 0) { cfg = {}; }
    switch (cfg.language) {
        case 'db2':
            return new Db2Formatter_1["default"](cfg).format(query);
        case 'n1ql':
            return new N1qlFormatter_1["default"](cfg).format(query);
        case 'pl/sql':
            return new PlSqlFormatter_1["default"](cfg).format(query);
        case 'sql':
        default:
            return new StandardSqlFormatter_1["default"](cfg).format(query);
    }
};
exports.format = format;
var tokenize = function (query, cfg) {
    if (cfg === void 0) { cfg = {}; }
    return new StandardSqlFormatter_1["default"](cfg).tokenize(query);
};
exports.tokenize = tokenize;
exports["default"] = {
    format: exports.format,
    tokenize: exports.tokenize
};

Anon7 - 2022
AnonSec Team