001/*******************************************************************************
002The MIT License (MIT)
003
004Copyright (c) 2024 KILLCODING.COM
005
006Permission is hereby granted, free of charge, to any person obtaining a copy
007of this software and associated documentation files (the "Software"), to deal
008in the Software without restriction, including without limitation the rights
009to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
010copies of the Software, and to permit persons to whom the Software is
011furnished to do so, subject to the following conditions:
012
013The above copyright notice and this permission notice shall be included in
014all copies or substantial portions of the Software.
015
016THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
017IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
018FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
019AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
020LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
021OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
022THE SOFTWARE.
023*****************************************************************************/
024package com.killcoding.jsplus;
025
026public interface ConsoleImpl {
027    
028    public final static String VERSION = "6.0.0 (Build 2026.03.28)";
029    
030    public final static String CONSOLE_FUN_REGEX = "^(Console\\.)([A-Za-z0-9_]+)[\s]*\\((.*)\\)[\s]*$";
031        public final static String CONSOLE_VAR_REGEX = "^(Console\\.)[A-Za-z0-9_]+[\s]*\\=.*$";
032        public final static String SELECT_REGEX = "^(SELECT|SHOW|DESC|EXPLAIN|VALUES)[\s]{1,}.*$";
033        public final static String CALL_REGEX = "^(CALL)[\s]{1,}.*$";
034
035    public final static Integer DEFAULT_QueryCursorStart = 0;
036        public final static Integer DEFAULT_QueryMaxRows = 1000;
037        public final static Integer DEFAULT_ColumnWidth = 10;
038        public final static String DEFAULT_CommandEnd = ";";
039        public final static String DEFAULT_CommandCancel = "!";
040        public final static String DEFAULT_CommandHistory = "#";
041        public final static Integer DEFAULT_ColumnCut = 100;
042        public final static Boolean DEFAULT_WriteHistory = true;
043        public final static Boolean DEFAULT_AutoCommit = false;
044        public final static Boolean DEFAULT_ShowResultHeader = true;
045        public final static Boolean DEFAULT_ShowResultBody = true;
046        public final static Boolean DEFAULT_ShowResultFooter = true;
047        public final static String DEFAULT_DateTimeFormat = "yyyy.MM.dd HH:mm:ss.SSSSSS";
048        public final static String DEFAULT_DateFormat = "yyyy.MM.dd";
049        public final static String DEFAULT_TimeFormat = "HH:mm:ss.SSSSSS".toLowerCase();
050        public final static String DEFAULT_Name = "jdbc";
051        public final static Long DEFAULT_TaskTimer = 0L;
052        public final static String DEFAULT_Task = null;
053        public final static Boolean DEFAULT_ShowTaskLog = true;
054        public final static Integer DEFAULT_ExportCursorStart = 0;
055        public final static Integer DEFAULT_ExportMaxFileSize = 100;
056        public final static Integer DEFAULT_ExportMaxRows = 50000000;
057        public final static String DEFAULT_ExportUpperOrLowerCase = "Original";
058        public final static Integer DEFAULT_BatchSize = 100;
059        public final static Long DEFAULT_ExportTimer = 1000L;
060        public final static String DEFAULT_Quote = "%s";
061        public final static String DEFAULT_CallStoredProcedureFun = "callAndReturnBoolean";
062        public final static String DEFAULT_ScriptEngine = "nashorn";
063        public final static String DEFAULT_ExportOrderBy = "";
064        public final static String DEFAULT_ExportSplit = ",";
065        public final static String DEFAULT_ImportSplit = ",";
066        
067        public final static String DEFAULT_Jdbc_Cipher_AesKey = "";
068        public final static String DEFAULT_Script_Cipher_AesKey = "";
069        public final static String DEFAULT_Config_Cipher_AesKey = "";
070        
071
072}