import { NSDatabase } from '@sqltools/types' ; const keywordsArr = [ 'ACCESSIBLE' , 'ACTION' , 'ADD' , 'AFTER' , 'AGAINST' , 'AGGREGATE' , 'ALGORITHM' , 'ALL' , 'ALTER' , 'ANALYSE' , 'ANALYZE' , 'AND' , 'ANY' , 'AS' , 'ASC' , 'ASCII' , 'ASENSITIVE' , 'AT' , 'AUTHORS' , 'AUTO_INCREMENT' , 'AUTOEXTEND_SIZE' , 'AVG' , 'AVG_ROW_LENGTH' , 'BACKUP' , 'BEFORE' , 'BEGIN' , 'BETWEEN' , 'BIGINT' , 'BINARY' , 'BINLOG' , 'BIT' , 'BLOB' , 'BLOCK' , 'BOOL' , 'BOOLEAN' , 'BOTH' , 'BTREE' , 'BY' , 'BYTE' , 'CACHE' , 'CALL' , 'CASCADE' , 'CASCADED' , 'CASE' , 'CATALOG_NAME' , 'CHAIN' , 'CHANGE' , 'CHANGED' , 'CHAR' , 'CHARACTER' , 'CHARSET' , 'CHECK' , 'CHECKSUM' , 'CIPHER' , 'CLASS_ORIGIN' , 'CLIENT' , 'CLOSE' , 'COALESCE' , 'CODE' , 'COLLATE' , 'COLLATION' , 'COLUMN' , 'COLUMN_FORMAT' , 'COLUMN_NAME' , 'COLUMNS' , 'COMMENT' , 'COMMIT' , 'COMMITTED' , 'COMPACT' , 'COMPLETION' , 'COMPRESSED' , 'CONCURRENT' , 'CONDITION' , 'CONNECTION' , 'CONSISTENT' , 'CONSTRAINT' , 'CONSTRAINT_CATALOG' , 'CONSTRAINT_NAME' , 'CONSTRAINT_SCHEMA' , 'CONTAINS' , 'CONTEXT' , 'CONTINUE' , 'CONTRIBUTORS' , 'CONVERT' , 'CPU' , 'CREATE' , 'CROSS' , 'CUBE' , 'CURRENT' , 'CURRENT_DATE' , 'CURRENT_TIME' , 'CURRENT_TIMESTAMP' , 'CURRENT_USER' , 'CURRENT' , 'CURSOR' , 'CURSOR_NAME' , 'DATA' , 'DATABASE' , 'DATABASES' , 'DATAFILE' , 'DATE' , 'DATETIME' , 'DAY' , 'DAY_HOUR' , 'DAY_MICROSECOND' , 'DAY_MINUTE' , 'DAY_SECOND' , 'DEALLOCATE' , 'DEC' , 'DECIMAL' , 'DECLARE' , 'DEFAULT' , 'DEFAULT_AUTH' , 'DEFINER' , 'DELAY_KEY_WRITE' , 'DELAYED' , 'DELETE' , 'DES_KEY_FILE' , 'DESC' , 'DESCRIBE' , 'DETERMINISTIC' , 'DIAGNOSTICS' , 'DIRECTORY' , 'DISABLE' , 'DISCARD' , 'DISK' , 'DISTINCT' , 'DISTINCTROW' , 'DIV' , 'DO' , 'DOUBLE' , 'DROP' , 'DUAL' , 'DUMPFILE' , 'DUPLICATE' , 'DYNAMIC' , 'EACH' , 'ELSE' , 'ELSEIF' , 'ENABLE' , 'ENCLOSED' , 'END' , 'ENDS' , 'ENGINE' , 'ENGINES' , 'ENUM' , 'ERROR' , 'ERRORS' , 'ESCAPE' , 'ESCAPED' , 'EVENT' , 'EVENTS' , 'EVERY' , 'EXCHANGE' , 'EXECUTE' , 'EXISTS' , 'EXIT' , 'EXPANSION' , 'EXPIRE' , 'EXPLAIN' , 'EXPORT' , 'EXTENDED' , 'EXTENT_SIZE' , 'FALSE' , 'FAST' , 'FAULTS' , 'FETCH' , 'FIELDS' , 'FILE' , 'FIRST' , 'FIXED' , 'FLOAT' , 'FLOAT4' , 'FLOAT8' , 'FLUSH' , 'FOR' , 'FORCE' , 'FOREIGN' , 'FORMAT' , 'FOUND' , 'FROM' , 'FULL' , 'FULLTEXT' , 'FUNCTION' , 'GENERAL' , 'GEOMETRY' , 'GEOMETRYCOLLECTION' , 'GET' , 'GET_FORMAT' , 'GLOBAL' , 'GRANT' , 'GRANTS' , 'GROUP' , 'HANDLER' , 'HASH' , 'HAVING' , 'HELP' , 'HIGH_PRIORITY' , 'HOST' , 'HOSTS' , 'HOUR' , 'HOUR_MICROSECOND' , 'HOUR_MINUTE' , 'HOUR_SECOND' , 'IDENTIFIED' , 'IF' , 'IGNORE' , 'IGNORE_SERVER_IDS' , 'IMPORT' , 'IN' , 'INDEX' , 'INDEXES' , 'INFILE' , 'INITIAL_SIZE' , 'INNER' , 'INOUT' , 'INSENSITIVE' , 'INSERT' , 'INSERT_METHOD' , 'INSTALL' , 'INT' , 'INT1' , 'INT2' , 'INT3' , 'INT4' , 'INT8' , 'INTEGER' , 'INTERVAL' , 'INTO' , 'INVOKER' , 'IO' , 'IO_AFTER_GTIDS' , 'IO_BEFORE_GTIDS' , 'IO_THREAD' , 'IPC' , 'IS' , 'ISOLATION' , 'ISSUER' , 'ITERATE' , 'JOIN' , 'KEY' , 'KEY_BLOCK_SIZE' , 'KEYS' , 'KILL' , 'LANGUAGE' , 'LAST' , 'LEADING' , 'LEAVE' , 'LEAVES' , 'LEFT' , 'LESS' , 'LEVEL' , 'LIKE' , 'LIMIT' , 'LINEAR' , 'LINES' , 'LINESTRING' , 'LIST' , 'LOAD' , 'LOCAL' , 'LOCALTIME' , 'LOCALTIMESTAMP' , 'LOCK' , 'LOCKS' , 'LOGFILE' , 'LOGS' , 'LONG' , 'LONGBLOB' , 'LONGTEXT' , 'LOOP' , 'LOW_PRIORITY' , 'MASTER' , 'MASTER_AUTO_POSITION' , 'MASTER_BIND' , 'MASTER_CONNECT_RETRY' , 'MASTER_DELAY' , 'MASTER_HEARTBEAT_PERIOD' , 'MASTER_HOST' , 'MASTER_LOG_FILE' , 'MASTER_LOG_POS' , 'MASTER_PASSWORD' , 'MASTER_PORT' , 'MASTER_RETRY_COUNT' , 'MASTER_SERVER_ID' , 'MASTER_SSL' , 'MASTER_SSL_CA' , 'MASTER_SSL_CAPATH' , 'MASTER_SSL_CERT' , 'MASTER_SSL_CIPHER' , 'MASTER_SSL_CRL' , 'MASTER_SSL_CRLPATH' , 'MASTER_SSL_KEY' , 'MASTER_SSL_VERIFY_SERVER_CERT' , 'MASTER_USER' , 'MATCH' , 'MAX_CONNECTIONS_PER_HOUR' , 'MAX_QUERIES_PER_HOUR' , 'MAX_ROWS' , 'MAX_SIZE' , 'MAX_UPDATES_PER_HOUR' , 'MAX_USER_CONNECTIONS' , 'MAXVALUE' , 'MEDIUM' , 'MEDIUMBLOB' , 'MEDIUMINT' , 'MEDIUMTEXT' , 'MEMORY' , 'MERGE' , 'MESSAGE_TEXT' , 'MICROSECOND' , 'MIDDLEINT' , 'MIGRATE' , 'MIN_ROWS' , 'MINUTE' , 'MINUTE_MICROSECOND' , 'MINUTE_SECOND' , 'MOD' , 'MODE' , 'MODIFIES' , 'MODIFY' , 'MONTH' , 'MULTILINESTRING' , 'MULTIPOINT' , 'MULTIPOLYGON' , 'MUTEX' , 'MYSQL_ERRNO' , 'NAME' , 'NAMES' , 'NATIONAL' , 'NATURAL' , 'NCHAR' , 'NDB' , 'NDBCLUSTER' , 'NEW' , 'NEXT' , 'NO' , 'NO_WAIT' , 'NO_WRITE_TO_BINLOG' , 'NODEGROUP' , 'NONE' , 'NOT' , 'NULL' , 'NUMBER' , 'NUMERIC' , 'NVARCHAR' , 'OFFSET' , 'OLD_PASSWORD' , 'ON' , 'ONE' , 'ONE_SHOT' , 'ONLY' , 'OPEN' , 'OPTIMIZE' , 'OPTION' , 'OPTIONALLY' , 'OPTIONS' , 'OR' , 'ORDER' , 'OUT' , 'OUTER' , 'OUTFILE' , 'OWNER' , 'PACK_KEYS' , 'PAGE' , 'PARSER' , 'PARTIAL' , 'PARTITION' , 'PARTITIONING' , 'PARTITIONS' , 'PASSWORD' , 'PHASE' , 'PLUGIN' , 'PLUGIN_DIR' , 'PLUGINS' , 'POINT' , 'POLYGON' , 'PORT' , 'PRECISION' , 'PREPARE' , 'PRESERVE' , 'PREV' , 'PRIMARY' , 'PRIVILEGES' , 'PROCEDURE' , 'PROCESSLIST' , 'PROFILE' , 'PROFILES' , 'PROXY' , 'PURGE' , 'QUARTER' , 'QUERY' , 'QUICK' , 'RANGE' , 'READ' , 'READ_ONLY' , 'READ_WRITE' , 'READS' , 'REAL' , 'REBUILD' , 'RECOVER' , 'REDO_BUFFER_SIZE' , 'REDOFILE' , 'REDUNDANT' , 'REFERENCES' , 'REGEXP' , 'RELAY' , 'RELAY_LOG_FILE' , 'RELAY_LOG_POS' , 'RELAY_THREAD' , 'RELAYLOG' , 'RELEASE' , 'RELOAD' , 'REMOVE' , 'RENAME' , 'REORGANIZE' , 'REPAIR' , 'REPEAT' , 'REPEATABLE' , 'REPLACE' , 'REPLICATION' , 'REQUIRE' , 'RESET' , 'RESIGNAL' , 'RESTORE' , 'RESTRICT' , 'RESUME' , 'RETURN' , 'RETURNED_SQLSTATE' , 'RETURNS' , 'REVERSE' , 'REVOKE' , 'RIGHT' , 'RLIKE' , 'ROLLBACK' , 'ROLLUP' , 'ROUTINE' , 'ROW' , 'ROW_COUNT' , 'ROW_FORMAT' , 'ROWS' , 'RTREE' , 'SAVEPOINT' , 'SCHEDULE' , 'SCHEMA' , 'SCHEMA_NAME' , 'SCHEMAS' , 'SECOND' , 'SECOND_MICROSECOND' , 'SECURITY' , 'SELECT' , 'SENSITIVE' , 'SEPARATOR' , 'SERIAL' , 'SERIALIZABLE' , 'SERVER' , 'SESSION' , 'SET' , 'SHARE' , 'SHOW' , 'SHUTDOWN' , 'SIGNAL' , 'SIGNED' , 'SIMPLE' , 'SLAVE' , 'SLOW' , 'SMALLINT' , 'SNAPSHOT' , 'SOCKET' , 'SOME' , 'SONAME' , 'SOUNDS' , 'SOURCE' , 'SPATIAL' , 'SPECIFIC' , 'SQL' , 'SQL_AFTER_GTIDS' , 'SQL_AFTER_MTS_GAPS' , 'SQL_BEFORE_GTIDS' , 'SQL_BIG_RESULT' , 'SQL_BUFFER_RESULT' , 'SQL_CACHE' , 'SQL_CALC_FOUND_ROWS' , 'SQL_NO_CACHE' , 'SQL_SMALL_RESULT' , 'SQL_THREAD' , 'SQL_TSI_DAY' , 'SQL_TSI_HOUR' , 'SQL_TSI_MINUTE' , 'SQL_TSI_MONTH' , 'SQL_TSI_QUARTER' , 'SQL_TSI_SECOND' , 'SQL_TSI_WEEK' , 'SQL_TSI_YEAR' , 'SQLEXCEPTION' , 'SQLSTATE' , 'SQLWARNING' , 'SSL' , 'START' , 'STARTING' , 'STARTS' , 'STATS_AUTO_RECALC' , 'STATS_PERSISTENT' , 'STATS_SAMPLE_PAGES' , 'STATUS' , 'STOP' , 'STORAGE' , 'STRAIGHT_JOIN' , 'STRING' , 'SUBCLASS_ORIGIN' , 'SUBJECT' , 'SUBPARTITION' , 'SUBPARTITIONS' , 'SUPER' , 'SUSPEND' , 'SWAPS' , 'SWITCHES' , 'TABLE' , 'TABLE_CHECKSUM' , 'TABLE_NAME' , 'TABLES' , 'TABLESPACE' , 'TEMPORARY' , 'TEMPTABLE' , 'TERMINATED' , 'TEXT' , 'THAN' , 'THEN' , 'TIME' , 'TIMESTAMP' , 'TIMESTAMPADD' , 'TIMESTAMPDIFF' , 'TINYBLOB' , 'TINYINT' , 'TINYTEXT' , 'TO' , 'TRAILING' , 'TRANSACTION' , 'TRIGGER' , 'TRIGGERS' , 'TRUE' , 'TRUNCATE' , 'TYPE' , 'TYPES' , 'UNCOMMITTED' , 'UNDEFINED' , 'UNDO' , 'UNDO_BUFFER_SIZE' , 'UNDOFILE' , 'UNICODE' , 'UNINSTALL' , 'UNION' , 'UNIQUE' , 'UNKNOWN' , 'UNLOCK' , 'UNSIGNED' , 'UNTIL' , 'UPDATE' , 'UPGRADE' , 'USAGE' , 'USE' , 'USE_FRM' , 'USER' , 'USER_RESOURCES' , 'USING' , 'UTC_DATE' , 'UTC_TIME' , 'UTC_TIMESTAMP' , 'VALUE' , 'VALUES' , 'VARBINARY' , 'VARCHAR' , 'VARCHARACTER' , 'VARIABLES' , 'VARYING' , 'VIEW' , 'WAIT' , 'WARNINGS' , 'WEEK' , 'WEIGHT_STRING' , 'WHEN' , 'WHERE' , 'WHILE' , 'WITH' , 'WORK' , 'WRAPPER' , 'WRITE' , 'X509' , 'XA' , 'XML' , 'XOR' , 'YEAR' , 'YEAR_MONTH' , 'ZEROFILL' , ] ; const keywordsCompletion = keywordsArr . reduce ( ( agg , word ) => { agg [ word ] = { label : word , detail : word , filterText : word , sortText : ( [ 'SELECT' , 'CREATE' , 'UPDATE' , 'DELETE' ] . includes ( word ) ? '2:' : '' ) + word , documentation : { value : `\`\`\`yaml\nWORD: ${ word }\n\`\`\`` , kind : 'markdown' } } ; return agg ; } , { } ) ; export default keywordsCompletion ;