Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

feat: add mysql function lists (#9403)

rebeliceb1acc1901d58
diff --git a/backend/plugin/parser/mysql/completion.go b/backend/plugin/parser/mysql/completion.go
index a142b8a8a3..7e0b686199 100644
--- a/backend/plugin/parser/mysql/completion.go
+++ b/backend/plugin/parser/mysql/completion.go
@@ -336,11 +336,7 @@ func (c *Completer) convertCandidates(candidates *base.CandidatesCollection) ([]
switch candidate {
case mysql.MySQLParserRULE_runtimeFunctionCall:
- // TODO: load runtime functions
- runtimeFunctionEntries.Insert(base.Candidate{
- Type: base.CandidateTypeFunction,
- Text: "runtimeFunction()",
- })
+ runtimeFunctionEntries.insertFunctions()
case mysql.MySQLParserRULE_schemaRef:
schemaEntries.insertDatabases(c)
case mysql.MySQLParserRULE_tableRefWithWildcard:
@@ -832,6 +828,15 @@ func (m CompletionMap) Insert(entry base.Candidate) {
m[entry.String()] = entry
}
+func (m CompletionMap) insertFunctions() {
+ for _, function := range mysql.GetBuiltinFunctions() {
+ m.Insert(base.Candidate{
+ Type: base.CandidateTypeFunction,
+ Text: function + "()",
+ })
+ }
+}
+
func (m CompletionMap) insertDatabases(c *Completer) {
for _, database := range c.listAllDatabases() {
m.Insert(base.Candidate{
diff --git a/backend/plugin/parser/mysql/test-data/test_completion.yaml b/backend/plugin/parser/mysql/test-data/test_completion.yaml
index 87720bd7ad..23f3977215 100644
--- a/backend/plugin/parser/mysql/test-data/test_completion.yaml
+++ b/backend/plugin/parser/mysql/test-data/test_completion.yaml
@@ -10,7 +10,881 @@
type: VIEW
- input: SELECT | FROM t1
want:
- - text: runtimeFunction()
+ - text: ABS()
+ type: FUNCTION
+ - text: ACOS()
+ type: FUNCTION
+ - text: ADDDATE()
+ type: FUNCTION
+ - text: ADDTIME()
+ type: FUNCTION
+ - text: AES_DECRYPT()
+ type: FUNCTION
+ - text: AES_ENCRYPT()
+ type: FUNCTION
+ - text: ANY_VALUE()
+ type: FUNCTION
+ - text: ASCII()
+ type: FUNCTION
+ - text: ASIN()
+ type: FUNCTION
+ - text: ATAN()
+ type: FUNCTION
+ - text: ATAN2()
+ type: FUNCTION
+ - text: AVG()
+ type: FUNCTION
+ - text: BENCHMARK()
+ type: FUNCTION
+ - text: BIN()
+ type: FUNCTION
+ - text: BIN_TO_UUID()
+ type: FUNCTION
+ - text: BIT_AND()
+ type: FUNCTION
+ - text: BIT_COUNT()
+ type: FUNCTION
+ - text: BIT_LENGTH()
+ type: FUNCTION
+ - text: BIT_OR()
+ type: FUNCTION
+ - text: BIT_XOR()
+ type: FUNCTION
+ - text: CAN_ACCESS_COLUMN()
+ type: FUNCTION
+ - text: CAN_ACCESS_DATABASE()
+ type: FUNCTION
+ - text: CAN_ACCESS_TABLE()
+ type: FUNCTION
+ - text: CAN_ACCESS_USER()
+ type: FUNCTION
+ - text: CAN_ACCESS_VIEW()
+ type: FUNCTION
+ - text: CAST()
+ type: FUNCTION
+ - text: CEIL()
+ type: FUNCTION
+ - text: CEILING()
+ type: FUNCTION
+ - text: CHAR()
+ type: FUNCTION
+ - text: CHARACTER_LENGTH()
+ type: FUNCTION
+ - text: CHARSET()
+ type: FUNCTION
+ - text: CHAR_LENGTH()
+ type: FUNCTION
+ - text: COALESCE()
+ type: FUNCTION
+ - text: COERCIBILITY()
+ type: FUNCTION
+ - text: COLLATION()
+ type: FUNCTION
+ - text: COMPRESS()
+ type: FUNCTION
+ - text: CONCAT()
+ type: FUNCTION
+ - text: CONCAT_WS()
+ type: FUNCTION
+ - text: CONNECTION_ID()
+ type: FUNCTION
+ - text: CONV()
+ type: FUNCTION
+ - text: CONVERT()
+ type: FUNCTION
+ - text: CONVERT_TZ()
+ type: FUNCTION
+ - text: COS()
+ type: FUNCTION
+ - text: COT()
+ type: FUNCTION
+ - text: COUNT()
+ type: FUNCTION
+ - text: CRC32()
+ type: FUNCTION
+ - text: CUME_DIST()
+ type: FUNCTION
+ - text: CURDATE()
+ type: FUNCTION
+ - text: CURRENT_DATE()
+ type: FUNCTION
+ - text: CURRENT_ROLE()
+ type: FUNCTION
+ - text: CURRENT_TIME()
+ type: FUNCTION
+ - text: CURRENT_TIMESTAMP()
+ type: FUNCTION
+ - text: CURRENT_USER()
+ type: FUNCTION
+ - text: CURTIME()
+ type: FUNCTION
+ - text: DATABASE()
+ type: FUNCTION
+ - text: DATE()
+ type: FUNCTION
+ - text: DATEDIFF()
+ type: FUNCTION
+ - text: DATE_ADD()
+ type: FUNCTION
+ - text: DATE_FORMAT()
+ type: FUNCTION
+ - text: DATE_SUB()
+ type: FUNCTION
+ - text: DAY()
+ type: FUNCTION
+ - text: DAYNAME()
+ type: FUNCTION
+ - text: DAYOFMONTH()
+ type: FUNCTION
+ - text: DAYOFWEEK()
+ type: FUNCTION
+ - text: DAYOFYEAR()
+ type: FUNCTION
+ - text: DEFAULT()
+ type: FUNCTION
+ - text: DEGREES()
+ type: FUNCTION
+ - text: DENSE_RANK()
+ type: FUNCTION
+ - text: ELT()
+ type: FUNCTION
+ - text: EXP()
+ type: FUNCTION
+ - text: EXPORT_SET()
+ type: FUNCTION
+ - text: EXTRACT()
+ type: FUNCTION
+ - text: ExtractValue()
+ type: FUNCTION
+ - text: FIELD()
+ type: FUNCTION
+ - text: FIND_IN_SET()
+ type: FUNCTION
+ - text: FIRST_VALUE()
+ type: FUNCTION
+ - text: FLOOR()
+ type: FUNCTION
+ - text: FORMAT()
+ type: FUNCTION
+ - text: FORMAT_BYTES()
+ type: FUNCTION
+ - text: FORMAT_PICO_TIME()
+ type: FUNCTION
+ - text: FOUND_ROWS()
+ type: FUNCTION
+ - text: FROM_BASE64()
+ type: FUNCTION
+ - text: FROM_DAYS()
+ type: FUNCTION
+ - text: FROM_UNIXTIME()
+ type: FUNCTION
+ - text: GET_DD_COLUMN_PRIVILEGES()
+ type: FUNCTION
+ - text: GET_DD_CREATE_OPTIONS()
+ type: FUNCTION
+ - text: GET_DD_INDEX_SUB_PART_LENGTH()
+ type: FUNCTION
+ - text: GET_FORMAT()
+ type: FUNCTION
+ - text: GET_LOCK()
+ type: FUNCTION
+ - text: GREATEST()
+ type: FUNCTION
+ - text: GROUPING()
+ type: FUNCTION
+ - text: GROUP_CONCAT()
+ type: FUNCTION
+ - text: GTID_SUBSET()
+ type: FUNCTION
+ - text: GTID_SUBTRACT()
+ type: FUNCTION
+ - text: GeomCollection()
+ type: FUNCTION
+ - text: GeometryCollection()
+ type: FUNCTION
+ - text: HEX()
+ type: FUNCTION
+ - text: HOUR()
+ type: FUNCTION
+ - text: ICU_VERSION()
+ type: FUNCTION
+ - text: IF()
+ type: FUNCTION
+ - text: IFNULL()
+ type: FUNCTION
+ - text: IN()
+ type: FUNCTION
+ - text: INET6_ATON()
+ type: FUNCTION
+ - text: INET6_NTOA()
+ type: FUNCTION
+ - text: INET_ATON()
+ type: FUNCTION
+ - text: INET_NTOA()
+ type: FUNCTION
+ - text: INSERT()
+ type: FUNCTION
+ - text: INSTR()
+ type: FUNCTION
+ - text: INTERNAL_AUTO_INCREMENT()
+ type: FUNCTION
+ - text: INTERNAL_AVG_ROW_LENGTH()
+ type: FUNCTION
+ - text: INTERNAL_CHECKSUM()
+ type: FUNCTION
+ - text: INTERNAL_CHECK_TIME()
+ type: FUNCTION
+ - text: INTERNAL_DATA_FREE()
+ type: FUNCTION
+ - text: INTERNAL_DATA_LENGTH()
+ type: FUNCTION
+ - text: INTERNAL_DD_CHAR_LENGTH()
+ type: FUNCTION
+ - text: INTERNAL_GET_COMMENT_OR_ERROR()
+ type: FUNCTION
+ - text: INTERNAL_GET_ENABLED_ROLE_JSON()
+ type: FUNCTION
+ - text: INTERNAL_GET_HOSTNAME()
+ type: FUNCTION
+ - text: INTERNAL_GET_USERNAME()
+ type: FUNCTION
+ - text: INTERNAL_GET_VIEW_WARNING_OR_ERROR()
+ type: FUNCTION
+ - text: INTERNAL_INDEX_COLUMN_CARDINALITY()
+ type: FUNCTION
+ - text: INTERNAL_INDEX_LENGTH()
+ type: FUNCTION
+ - text: INTERNAL_IS_ENABLED_ROLE()
+ type: FUNCTION
+ - text: INTERNAL_IS_MANDATORY_ROLE()
+ type: FUNCTION
+ - text: INTERNAL_KEYS_DISABLED()
+ type: FUNCTION
+ - text: INTERNAL_MAX_DATA_LENGTH()
+ type: FUNCTION
+ - text: INTERNAL_TABLE_ROWS()
+ type: FUNCTION
+ - text: INTERNAL_UPDATE_TIME()
+ type: FUNCTION
+ - text: INTERVAL()
+ type: FUNCTION
+ - text: ISNULL()
+ type: FUNCTION
+ - text: IS_FREE_LOCK()
+ type: FUNCTION
+ - text: IS_IPV4()
+ type: FUNCTION
+ - text: IS_IPV4_COMPAT()
+ type: FUNCTION
+ - text: IS_IPV4_MAPPED()
+ type: FUNCTION
+ - text: IS_IPV6()
+ type: FUNCTION
+ - text: IS_USED_LOCK()
+ type: FUNCTION
+ - text: IS_UUID()
+ type: FUNCTION
+ - text: JSON_ARRAY()
+ type: FUNCTION
+ - text: JSON_ARRAYAGG()
+ type: FUNCTION
+ - text: JSON_ARRAY_APPEND()
+ type: FUNCTION
+ - text: JSON_ARRAY_INSERT()
+ type: FUNCTION
+ - text: JSON_CONTAINS()
+ type: FUNCTION
+ - text: JSON_CONTAINS_PATH()
+ type: FUNCTION
+ - text: JSON_DEPTH()
+ type: FUNCTION
+ - text: JSON_EXTRACT()
+ type: FUNCTION
+ - text: JSON_INSERT()
+ type: FUNCTION
+ - text: JSON_KEYS()
+ type: FUNCTION
+ - text: JSON_LENGTH()
+ type: FUNCTION
+ - text: JSON_MERGE()
+ type: FUNCTION
+ - text: JSON_MERGE_PATCH()
+ type: FUNCTION
+ - text: JSON_MERGE_PRESERVE()
+ type: FUNCTION
+ - text: JSON_OBJECT()
+ type: FUNCTION
+ - text: JSON_OBJECTAGG()
+ type: FUNCTION
+ - text: JSON_OVERLAPS()
+ type: FUNCTION
+ - text: JSON_PRETTY()
+ type: FUNCTION
+ - text: JSON_QUOTE()
+ type: FUNCTION
+ - text: JSON_REMOVE()
+ type: FUNCTION
+ - text: JSON_REPLACE()
+ type: FUNCTION
+ - text: JSON_SCHEMA_VALID()
+ type: FUNCTION
+ - text: JSON_SCHEMA_VALIDATION_REPORT()
+ type: FUNCTION
+ - text: JSON_SEARCH()
+ type: FUNCTION
+ - text: JSON_SET()
+ type: FUNCTION
+ - text: JSON_STORAGE_FREE()
+ type: FUNCTION
+ - text: JSON_STORAGE_SIZE()
+ type: FUNCTION
+ - text: JSON_TABLE()
+ type: FUNCTION
+ - text: JSON_TYPE()
+ type: FUNCTION
+ - text: JSON_UNQUOTE()
+ type: FUNCTION
+ - text: JSON_VALID()
+ type: FUNCTION
+ - text: JSON_VALUE()
+ type: FUNCTION
+ - text: LAG()
+ type: FUNCTION
+ - text: LAST_INSERT_ID()
+ type: FUNCTION
+ - text: LAST_VALUE()
+ type: FUNCTION
+ - text: LCASE()
+ type: FUNCTION
+ - text: LEAD()
+ type: FUNCTION
+ - text: LEAST()
+ type: FUNCTION
+ - text: LEFT()
+ type: FUNCTION
+ - text: LENGTH()
+ type: FUNCTION
+ - text: LN()
+ type: FUNCTION
+ - text: LOAD_FILE()
+ type: FUNCTION
+ - text: LOCALTIME()
+ type: FUNCTION
+ - text: LOCALTIMESTAMP()
+ type: FUNCTION
+ - text: LOCATE()
+ type: FUNCTION
+ - text: LOG()
+ type: FUNCTION
+ - text: LOG10()
+ type: FUNCTION
+ - text: LOG2()
+ type: FUNCTION
+ - text: LOWER()
+ type: FUNCTION
+ - text: LPAD()
+ type: FUNCTION
+ - text: LTRIM()
+ type: FUNCTION
+ - text: LineString()
+ type: FUNCTION
+ - text: MAKEDATE()
+ type: FUNCTION
+ - text: MAKETIME()
+ type: FUNCTION
+ - text: MAKE_SET()
+ type: FUNCTION
+ - text: MASTER_POS_WAIT()
+ type: FUNCTION
+ - text: MATCH()
+ type: FUNCTION
+ - text: MAX()
+ type: FUNCTION
+ - text: MBRContains()
+ type: FUNCTION
+ - text: MBRCoveredBy()
+ type: FUNCTION
+ - text: MBRCovers()
+ type: FUNCTION
+ - text: MBRDisjoint()
+ type: FUNCTION
+ - text: MBREquals()
+ type: FUNCTION
+ - text: MBRIntersects()
+ type: FUNCTION
+ - text: MBROverlaps()
+ type: FUNCTION
+ - text: MBRTouches()
+ type: FUNCTION
+ - text: MBRWithin()
+ type: FUNCTION
+ - text: MD5()
+ type: FUNCTION
+ - text: MEMBER OF()
+ type: FUNCTION
+ - text: MICROSECOND()
+ type: FUNCTION
+ - text: MID()
+ type: FUNCTION
+ - text: MIN()
+ type: FUNCTION
+ - text: MINUTE()
+ type: FUNCTION
+ - text: MOD()
+ type: FUNCTION
+ - text: MONTH()
+ type: FUNCTION
+ - text: MONTHNAME()
+ type: FUNCTION
+ - text: MultiLineString()
+ type: FUNCTION
+ - text: MultiPoint()
+ type: FUNCTION
+ - text: MultiPolygon()
+ type: FUNCTION
+ - text: NAME_CONST()
+ type: FUNCTION
+ - text: NOT IN()
+ type: FUNCTION
+ - text: NOW()
+ type: FUNCTION
+ - text: NTH_VALUE()
+ type: FUNCTION
+ - text: NTILE()
+ type: FUNCTION
+ - text: NULLIF()
+ type: FUNCTION
+ - text: OCT()
+ type: FUNCTION
+ - text: OCTET_LENGTH()
+ type: FUNCTION
+ - text: ORD()
+ type: FUNCTION
+ - text: PERCENT_RANK()
+ type: FUNCTION
+ - text: PERIOD_ADD()
+ type: FUNCTION
+ - text: PERIOD_DIFF()
+ type: FUNCTION
+ - text: PI()
+ type: FUNCTION
+ - text: POSITION()
+ type: FUNCTION
+ - text: POW()
+ type: FUNCTION
+ - text: POWER()
+ type: FUNCTION
+ - text: PS_CURRENT_THREAD_ID()
+ type: FUNCTION
+ - text: PS_THREAD_ID()
+ type: FUNCTION
+ - text: Point()
+ type: FUNCTION
+ - text: Polygon()
+ type: FUNCTION
+ - text: QUARTER()
+ type: FUNCTION
+ - text: QUOTE()
+ type: FUNCTION
+ - text: RADIANS()
+ type: FUNCTION
+ - text: RAND()
+ type: FUNCTION
+ - text: RANDOM_BYTES()
+ type: FUNCTION
+ - text: RANK()
+ type: FUNCTION
+ - text: REGEXP_INSTR()
+ type: FUNCTION
+ - text: REGEXP_LIKE()
+ type: FUNCTION
+ - text: REGEXP_REPLACE()
+ type: FUNCTION
+ - text: REGEXP_SUBSTR()
+ type: FUNCTION
+ - text: RELEASE_ALL_LOCKS()
+ type: FUNCTION
+ - text: RELEASE_LOCK()
+ type: FUNCTION
+ - text: REPEAT()
+ type: FUNCTION
+ - text: REPLACE()
+ type: FUNCTION
+ - text: REVERSE()
+ type: FUNCTION
+ - text: RIGHT()
+ type: FUNCTION
+ - text: ROLES_GRAPHML()
+ type: FUNCTION
+ - text: ROUND()
+ type: FUNCTION
+ - text: ROW_COUNT()
+ type: FUNCTION
+ - text: ROW_NUMBER()
+ type: FUNCTION
+ - text: RPAD()
+ type: FUNCTION
+ - text: RTRIM()
+ type: FUNCTION
+ - text: SCHEMA()
+ type: FUNCTION
+ - text: SECOND()
+ type: FUNCTION
+ - text: SEC_TO_TIME()
+ type: FUNCTION
+ - text: SESSION_USER()
+ type: FUNCTION
+ - text: SHA()
+ type: FUNCTION
+ - text: SHA1()
+ type: FUNCTION
+ - text: SHA2()
+ type: FUNCTION
+ - text: SIGN()
+ type: FUNCTION
+ - text: SIN()
+ type: FUNCTION
+ - text: SLEEP()
+ type: FUNCTION
+ - text: SOUNDEX()
+ type: FUNCTION
+ - text: SOURCE_POS_WAIT()
+ type: FUNCTION
+ - text: SPACE()
+ type: FUNCTION
+ - text: SQRT()
+ type: FUNCTION
+ - text: STATEMENT_DIGEST()
+ type: FUNCTION
+ - text: STATEMENT_DIGEST_TEXT()
+ type: FUNCTION
+ - text: STD()
+ type: FUNCTION
+ - text: STDDEV()
+ type: FUNCTION
+ - text: STDDEV_POP()
+ type: FUNCTION
+ - text: STDDEV_SAMP()
+ type: FUNCTION
+ - text: STRCMP()
+ type: FUNCTION
+ - text: STR_TO_DATE()
+ type: FUNCTION
+ - text: ST_Area()
+ type: FUNCTION
+ - text: ST_AsBinary()
+ type: FUNCTION
+ - text: ST_AsGeoJSON()
+ type: FUNCTION
+ - text: ST_AsText()
+ type: FUNCTION
+ - text: ST_AsWKB()
+ type: FUNCTION
+ - text: ST_AsWKT()
+ type: FUNCTION
+ - text: ST_Buffer()
+ type: FUNCTION
+ - text: ST_Buffer_Strategy()
+ type: FUNCTION
+ - text: ST_Centroid()
+ type: FUNCTION
+ - text: ST_Collect()
+ type: FUNCTION
+ - text: ST_Contains()
+ type: FUNCTION
+ - text: ST_ConvexHull()
+ type: FUNCTION
+ - text: ST_Crosses()
+ type: FUNCTION
+ - text: ST_Difference()
+ type: FUNCTION
+ - text: ST_Dimension()
+ type: FUNCTION
+ - text: ST_Disjoint()
+ type: FUNCTION
+ - text: ST_Distance()
+ type: FUNCTION
+ - text: ST_Distance_Sphere()
+ type: FUNCTION
+ - text: ST_EndPoint()
+ type: FUNCTION
+ - text: ST_Envelope()
+ type: FUNCTION
+ - text: ST_Equals()
+ type: FUNCTION
+ - text: ST_ExteriorRing()
+ type: FUNCTION
+ - text: ST_FrechetDistance()
+ type: FUNCTION
+ - text: ST_GeoHash()
+ type: FUNCTION
+ - text: ST_GeomCollFromText()
+ type: FUNCTION
+ - text: ST_GeomCollFromTxt()
+ type: FUNCTION
+ - text: ST_GeomCollFromWKB()
+ type: FUNCTION
+ - text: ST_GeomFromGeoJSON()
+ type: FUNCTION
+ - text: ST_GeomFromText()
+ type: FUNCTION
+ - text: ST_GeomFromWKB()
+ type: FUNCTION
+ - text: ST_GeometryCollectionFromText()
+ type: FUNCTION
+ - text: ST_GeometryCollectionFromWKB()
+ type: FUNCTION
+ - text: ST_GeometryFromText()
+ type: FUNCTION
+ - text: ST_GeometryFromWKB()
+ type: FUNCTION
+ - text: ST_GeometryN()
+ type: FUNCTION
+ - text: ST_GeometryType()
+ type: FUNCTION
+ - text: ST_HausdorffDistance()
+ type: FUNCTION
+ - text: ST_InteriorRingN()
+ type: FUNCTION
+ - text: ST_Intersection()
+ type: FUNCTION
+ - text: ST_Intersects()
+ type: FUNCTION
+ - text: ST_IsClosed()
+ type: FUNCTION
+ - text: ST_IsEmpty()
+ type: FUNCTION
+ - text: ST_IsSimple()
+ type: FUNCTION
+ - text: ST_IsValid()
+ type: FUNCTION
+ - text: ST_LatFromGeoHash()
+ type: FUNCTION
+ - text: ST_Latitude()
+ type: FUNCTION
+ - text: ST_Length()
+ type: FUNCTION
+ - text: ST_LineFromText()
+ type: FUNCTION
+ - text: ST_LineFromWKB()
+ type: FUNCTION
+ - text: ST_LineInterpolatePoint()
+ type: FUNCTION
+ - text: ST_LineInterpolatePoints()
+ type: FUNCTION
+ - text: ST_LineStringFromText()
+ type: FUNCTION
+ - text: ST_LineStringFromWKB()
+ type: FUNCTION
+ - text: ST_LongFromGeoHash()
+ type: FUNCTION
+ - text: ST_Longitude()
+ type: FUNCTION
+ - text: ST_MLineFromText()
+ type: FUNCTION
+ - text: ST_MLineFromWKB()
+ type: FUNCTION
+ - text: ST_MPointFromText()
+ type: FUNCTION
+ - text: ST_MPointFromWKB()
+ type: FUNCTION
+ - text: ST_MPolyFromText()
+ type: FUNCTION
+ - text: ST_MPolyFromWKB()
+ type: FUNCTION
+ - text: ST_MakeEnvelope()
+ type: FUNCTION
+ - text: ST_MultiLineStringFromText()
+ type: FUNCTION
+ - text: ST_MultiLineStringFromWKB()
+ type: FUNCTION
+ - text: ST_MultiPointFromText()
+ type: FUNCTION
+ - text: ST_MultiPointFromWKB()
+ type: FUNCTION
+ - text: ST_MultiPolygonFromText()
+ type: FUNCTION
+ - text: ST_MultiPolygonFromWKB()
+ type: FUNCTION
+ - text: ST_NumGeometries()
+ type: FUNCTION
+ - text: ST_NumInteriorRing()
+ type: FUNCTION
+ - text: ST_NumInteriorRings()
+ type: FUNCTION
+ - text: ST_NumPoints()
+ type: FUNCTION
+ - text: ST_Overlaps()
+ type: FUNCTION
+ - text: ST_PointAtDistance()
+ type: FUNCTION
+ - text: ST_PointFromGeoHash()
+ type: FUNCTION
+ - text: ST_PointFromText()
+ type: FUNCTION
+ - text: ST_PointFromWKB()
+ type: FUNCTION
+ - text: ST_PointN()
+ type: FUNCTION
+ - text: ST_PolyFromText()
+ type: FUNCTION
+ - text: ST_PolyFromWKB()
+ type: FUNCTION
+ - text: ST_PolygonFromText()
+ type: FUNCTION
+ - text: ST_PolygonFromWKB()
+ type: FUNCTION
+ - text: ST_SRID()
+ type: FUNCTION
+ - text: ST_Simplify()
+ type: FUNCTION
+ - text: ST_StartPoint()
+ type: FUNCTION
+ - text: ST_SwapXY()
+ type: FUNCTION
+ - text: ST_SymDifference()
+ type: FUNCTION
+ - text: ST_Touches()
+ type: FUNCTION
+ - text: ST_Transform()
+ type: FUNCTION
+ - text: ST_Union()
+ type: FUNCTION
+ - text: ST_Validate()
+ type: FUNCTION
+ - text: ST_Within()
+ type: FUNCTION
+ - text: ST_X()
+ type: FUNCTION
+ - text: ST_Y()
+ type: FUNCTION
+ - text: SUBDATE()
+ type: FUNCTION
+ - text: SUBSTR()
+ type: FUNCTION
+ - text: SUBSTRING()
+ type: FUNCTION
+ - text: SUBSTRING_INDEX()
+ type: FUNCTION
+ - text: SUBTIME()
+ type: FUNCTION
+ - text: SUM()
+ type: FUNCTION
+ - text: SYSDATE()
+ type: FUNCTION
+ - text: SYSTEM_USER()
+ type: FUNCTION
+ - text: TAN()
+ type: FUNCTION
+ - text: TIME()
+ type: FUNCTION
+ - text: TIMEDIFF()
+ type: FUNCTION
+ - text: TIMESTAMP()
+ type: FUNCTION
+ - text: TIMESTAMPADD()
+ type: FUNCTION
+ - text: TIMESTAMPDIFF()
+ type: FUNCTION
+ - text: TIME_FORMAT()
+ type: FUNCTION
+ - text: TIME_TO_SEC()
+ type: FUNCTION
+ - text: TO_BASE64()
+ type: FUNCTION
+ - text: TO_DAYS()
+ type: FUNCTION
+ - text: TO_SECONDS()
+ type: FUNCTION
+ - text: TRIM()
+ type: FUNCTION
+ - text: TRUNCATE()
+ type: FUNCTION
+ - text: UCASE()
+ type: FUNCTION
+ - text: UNCOMPRESS()
+ type: FUNCTION
+ - text: UNCOMPRESSED_LENGTH()
+ type: FUNCTION
+ - text: UNHEX()
+ type: FUNCTION
+ - text: UNIX_TIMESTAMP()
+ type: FUNCTION
+ - text: UPPER()
+ type: FUNCTION
+ - text: USER()
+ type: FUNCTION
+ - text: UTC_DATE()
+ type: FUNCTION
+ - text: UTC_TIME()
+ type: FUNCTION
+ - text: UTC_TIMESTAMP()
+ type: FUNCTION
+ - text: UUID()
+ type: FUNCTION
+ - text: UUID_SHORT()
+ type: FUNCTION
+ - text: UUID_TO_BIN()
+ type: FUNCTION
+ - text: UpdateXML()
+ type: FUNCTION
+ - text: VALIDATE_PASSWORD_STRENGTH()
+ type: FUNCTION
+ - text: VALUES()
+ type: FUNCTION
+ - text: VARIANCE()
+ type: FUNCTION
+ - text: VAR_POP()
+ type: FUNCTION
+ - text: VAR_SAMP()
+ type: FUNCTION
+ - text: VERSION()
+ type: FUNCTION
+ - text: WAIT_FOR_EXECUTED_GTID_SET()
+ type: FUNCTION
+ - text: WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS()
+ type: FUNCTION
+ - text: WEEK()
+ type: FUNCTION
+ - text: WEEKDAY()
+ type: FUNCTION
+ - text: WEEKOFYEAR()
+ type: FUNCTION
+ - text: WEIGHT_STRING()
+ type: FUNCTION
+ - text: YEAR()
+ type: FUNCTION
+ - text: YEARWEEK()
+ type: FUNCTION
+ - text: asynchronous_connection_failover_add_managed()
+ type: FUNCTION
+ - text: asynchronous_connection_failover_add_source()
+ type: FUNCTION
+ - text: asynchronous_connection_failover_delete_managed()
+ type: FUNCTION
+ - text: asynchronous_connection_failover_delete_source()
+ type: FUNCTION
+ - text: asynchronous_connection_failover_reset()
+ type: FUNCTION
+ - text: group_replication_disable_member_action()
+ type: FUNCTION
+ - text: group_replication_enable_member_action()
+ type: FUNCTION
+ - text: group_replication_get_communication_protocol()
+ type: FUNCTION
+ - text: group_replication_get_write_concurrency()
+ type: FUNCTION
+ - text: group_replication_reset_member_actions()
+ type: FUNCTION
+ - text: group_replication_set_as_primary()
+ type: FUNCTION
+ - text: group_replication_set_communication_protocol()
+ type: FUNCTION
+ - text: group_replication_set_write_concurrency()
+ type: FUNCTION
+ - text: group_replication_switch_to_multi_primary_mode()
+ type: FUNCTION
+ - text: group_replication_switch_to_single_primary_mode()
type: FUNCTION
- text: db
type: DATABASE
@@ -24,7 +898,881 @@
type: VIEW
- input: SELECT | FROM t2 x
want:
- - text: runtimeFunction()
+ - text: ABS()
+ type: FUNCTION
+ - text: ACOS()
+ type: FUNCTION
+ - text: ADDDATE()
+ type: FUNCTION
+ - text: ADDTIME()
+ type: FUNCTION
+ - text: AES_DECRYPT()
+ type: FUNCTION
+ - text: AES_ENCRYPT()
+ type: FUNCTION
+ - text: ANY_VALUE()
+ type: FUNCTION
+ - text: ASCII()
+ type: FUNCTION
+ - text: ASIN()
+ type: FUNCTION
+ - text: ATAN()
+ type: FUNCTION
+ - text: ATAN2()
+ type: FUNCTION
+ - text: AVG()
+ type: FUNCTION
+ - text: BENCHMARK()
+ type: FUNCTION
+ - text: BIN()
+ type: FUNCTION
+ - text: BIN_TO_UUID()
+ type: FUNCTION
+ - text: BIT_AND()
+ type: FUNCTION
+ - text: BIT_COUNT()
+ type: FUNCTION
+ - text: BIT_LENGTH()
+ type: FUNCTION
+ - text: BIT_OR()
+ type: FUNCTION
+ - text: BIT_XOR()
+ type: FUNCTION
+ - text: CAN_ACCESS_COLUMN()
+ type: FUNCTION
+ - text: CAN_ACCESS_DATABASE()
+ type: FUNCTION
+ - text: CAN_ACCESS_TABLE()
+ type: FUNCTION
+ - text: CAN_ACCESS_USER()
+ type: FUNCTION
+ - text: CAN_ACCESS_VIEW()
+ type: FUNCTION
+ - text: CAST()
+ type: FUNCTION
+ - text: CEIL()
+ type: FUNCTION
+ - text: CEILING()
+ type: FUNCTION
+ - text: CHAR()
+ type: FUNCTION
+ - text: CHARACTER_LENGTH()
+ type: FUNCTION
+ - text: CHARSET()
+ type: FUNCTION
+ - text: CHAR_LENGTH()
+ type: FUNCTION
+ - text: COALESCE()
+ type: FUNCTION
+ - text: COERCIBILITY()
+ type: FUNCTION
+ - text: COLLATION()
+ type: FUNCTION
+ - text: COMPRESS()
+ type: FUNCTION
+ - text: CONCAT()
+ type: FUNCTION
+ - text: CONCAT_WS()
+ type: FUNCTION
+ - text: CONNECTION_ID()
+ type: FUNCTION
+ - text: CONV()
+ type: FUNCTION
+ - text: CONVERT()
+ type: FUNCTION
+ - text: CONVERT_TZ()
+ type: FUNCTION
+ - text: COS()
+ type: FUNCTION
+ - text: COT()
+ type: FUNCTION
+ - text: COUNT()
+ type: FUNCTION
+ - text: CRC32()
+ type: FUNCTION
+ - text: CUME_DIST()
+ type: FUNCTION
+ - text: CURDATE()
+ type: FUNCTION
+ - text: CURRENT_DATE()
+ type: FUNCTION
+ - text: CURRENT_ROLE()
+ type: FUNCTION
+ - text: CURRENT_TIME()
+ type: FUNCTION
+ - text: CURRENT_TIMESTAMP()
+ type: FUNCTION
+ - text: CURRENT_USER()
+ type: FUNCTION
+ - text: CURTIME()
+ type: FUNCTION
+ - text: DATABASE()
+ type: FUNCTION
+ - text: DATE()
+ type: FUNCTION
+ - text: DATEDIFF()
+ type: FUNCTION
+ - text: DATE_ADD()
+ type: FUNCTION
+ - text: DATE_FORMAT()
+ type: FUNCTION
+ - text: DATE_SUB()
+ type: FUNCTION
+ - text: DAY()
+ type: FUNCTION
+ - text: DAYNAME()
+ type: FUNCTION
+ - text: DAYOFMONTH()
+ type: FUNCTION
+ - text: DAYOFWEEK()
+ type: FUNCTION
+ - text: DAYOFYEAR()
+ type: FUNCTION
+ - text: DEFAULT()
+ type: FUNCTION
+ - text: DEGREES()
+ type: FUNCTION
+ - text: DENSE_RANK()
+ type: FUNCTION
+ - text: ELT()
+ type: FUNCTION
+ - text: EXP()
+ type: FUNCTION
+ - text: EXPORT_SET()
+ type: FUNCTION
+ - text: EXTRACT()
+ type: FUNCTION
+ - text: ExtractValue()
+ type: FUNCTION
+ - text: FIELD()
+ type: FUNCTION
+ - text: FIND_IN_SET()
+ type: FUNCTION
+ - text: FIRST_VALUE()
+ type: FUNCTION
+ - text: FLOOR()
+ type: FUNCTION
+ - text: FORMAT()
+ type: FUNCTION
+ - text: FORMAT_BYTES()
+ type: FUNCTION
+ - text: FORMAT_PICO_TIME()
+ type: FUNCTION
+ - text: FOUND_ROWS()
+ type: FUNCTION
+ - text: FROM_BASE64()
+ type: FUNCTION
+ - text: FROM_DAYS()
+ type: FUNCTION
+ - text: FROM_UNIXTIME()
+ type: FUNCTION
+ - text: GET_DD_COLUMN_PRIVILEGES()
+ type: FUNCTION
+ - text: GET_DD_CREATE_OPTIONS()
+ type: FUNCTION
+ - text: GET_DD_INDEX_SUB_PART_LENGTH()
+ type: FUNCTION
+ - text: GET_FORMAT()
+ type: FUNCTION
+ - text: GET_LOCK()
+ type: FUNCTION
+ - text: GREATEST()
+ type: FUNCTION
+ - text: GROUPING()
+ type: FUNCTION
+ - text: GROUP_CONCAT()
+ type: FUNCTION
+ - text: GTID_SUBSET()
+ type: FUNCTION
+ - text: GTID_SUBTRACT()
+ type: FUNCTION
+ - text: GeomCollection()
+ type: FUNCTION
+ - text: GeometryCollection()
+ type: FUNCTION
+ - text: HEX()
+ type: FUNCTION
+ - text: HOUR()
+ type: FUNCTION
+ - text: ICU_VERSION()
+ type: FUNCTION
+ - text: IF()
+ type: FUNCTION
+ - text: IFNULL()
+ type: FUNCTION
+ - text: IN()
+ type: FUNCTION
+ - text: INET6_ATON()
+ type: FUNCTION
+ - text: INET6_NTOA()
+ type: FUNCTION
+ - text: INET_ATON()
+ type: FUNCTION
+ - text: INET_NTOA()
+ type: FUNCTION
+ - text: INSERT()
+ type: FUNCTION
+ - text: INSTR()
+ type: FUNCTION
+ - text: INTERNAL_AUTO_INCREMENT()
+ type: FUNCTION
+ - text: INTERNAL_AVG_ROW_LENGTH()
+ type: FUNCTION
+ - text: INTERNAL_CHECKSUM()
+ type: FUNCTION
+ - text: INTERNAL_CHECK_TIME()
+ type: FUNCTION
+ - text: INTERNAL_DATA_FREE()
+ type: FUNCTION
+ - text: INTERNAL_DATA_LENGTH()
+ type: FUNCTION
+ - text: INTERNAL_DD_CHAR_LENGTH()
+ type: FUNCTION
+ - text: INTERNAL_GET_COMMENT_OR_ERROR()
+ type: FUNCTION
+ - text: INTERNAL_GET_ENABLED_ROLE_JSON()
+ type: FUNCTION
+ - text: INTERNAL_GET_HOSTNAME()
+ type: FUNCTION
+ - text: INTERNAL_GET_USERNAME()
+ type: FUNCTION
+ - text: INTERNAL_GET_VIEW_WARNING_OR_ERROR()
+ type: FUNCTION
+ - text: INTERNAL_INDEX_COLUMN_CARDINALITY()
+ type: FUNCTION
+ - text: INTERNAL_INDEX_LENGTH()
+ type: FUNCTION
+ - text: INTERNAL_IS_ENABLED_ROLE()
+ type: FUNCTION
+ - text: INTERNAL_IS_MANDATORY_ROLE()
+ type: FUNCTION
+ - text: INTERNAL_KEYS_DISABLED()
+ type: FUNCTION
+ - text: INTERNAL_MAX_DATA_LENGTH()
+ type: FUNCTION
+ - text: INTERNAL_TABLE_ROWS()
+ type: FUNCTION
+ - text: INTERNAL_UPDATE_TIME()
+ type: FUNCTION
+ - text: INTERVAL()
+ type: FUNCTION
+ - text: ISNULL()
+ type: FUNCTION
+ - text: IS_FREE_LOCK()
+ type: FUNCTION
+ - text: IS_IPV4()
+ type: FUNCTION
+ - text: IS_IPV4_COMPAT()
+ type: FUNCTION
+ - text: IS_IPV4_MAPPED()
+ type: FUNCTION
+ - text: IS_IPV6()
+ type: FUNCTION
+ - text: IS_USED_LOCK()
+ type: FUNCTION
+ - text: IS_UUID()
+ type: FUNCTION
+ - text: JSON_ARRAY()
+ type: FUNCTION
+ - text: JSON_ARRAYAGG()
+ type: FUNCTION
+ - text: JSON_ARRAY_APPEND()
+ type: FUNCTION
+ - text: JSON_ARRAY_INSERT()
+ type: FUNCTION
+ - text: JSON_CONTAINS()
+ type: FUNCTION
+ - text: JSON_CONTAINS_PATH()
+ type: FUNCTION
+ - text: JSON_DEPTH()
+ type: FUNCTION
+ - text: JSON_EXTRACT()
+ type: FUNCTION
+ - text: JSON_INSERT()
+ type: FUNCTION
+ - text: JSON_KEYS()
+ type: FUNCTION
+ - text: JSON_LENGTH()
+ type: FUNCTION
+ - text: JSON_MERGE()
+ type: FUNCTION
+ - text: JSON_MERGE_PATCH()
+ type: FUNCTION
+ - text: JSON_MERGE_PRESERVE()
+ type: FUNCTION
+ - text: JSON_OBJECT()
+ type: FUNCTION
+ - text: JSON_OBJECTAGG()
+ type: FUNCTION
+ - text: JSON_OVERLAPS()
+ type: FUNCTION
+ - text: JSON_PRETTY()
+ type: FUNCTION
+ - text: JSON_QUOTE()
+ type: FUNCTION
+ - text: JSON_REMOVE()
+ type: FUNCTION
+ - text: JSON_REPLACE()
+ type: FUNCTION
+ - text: JSON_SCHEMA_VALID()
+ type: FUNCTION
+ - text: JSON_SCHEMA_VALIDATION_REPORT()
+ type: FUNCTION
+ - text: JSON_SEARCH()
+ type: FUNCTION
+ - text: JSON_SET()
+ type: FUNCTION
+ - text: JSON_STORAGE_FREE()
+ type: FUNCTION
+ - text: JSON_STORAGE_SIZE()
+ type: FUNCTION
+ - text: JSON_TABLE()
+ type: FUNCTION
+ - text: JSON_TYPE()
+ type: FUNCTION
+ - text: JSON_UNQUOTE()
+ type: FUNCTION
+ - text: JSON_VALID()
+ type: FUNCTION
+ - text: JSON_VALUE()
+ type: FUNCTION
+ - text: LAG()
+ type: FUNCTION
+ - text: LAST_INSERT_ID()
+ type: FUNCTION
+ - text: LAST_VALUE()
+ type: FUNCTION
+ - text: LCASE()
+ type: FUNCTION
+ - text: LEAD()
+ type: FUNCTION
+ - text: LEAST()
+ type: FUNCTION
+ - text: LEFT()
+ type: FUNCTION
+ - text: LENGTH()
+ type: FUNCTION
+ - text: LN()
+ type: FUNCTION
+ - text: LOAD_FILE()
+ type: FUNCTION
+ - text: LOCALTIME()
+ type: FUNCTION
+ - text: LOCALTIMESTAMP()
+ type: FUNCTION
+ - text: LOCATE()
+ type: FUNCTION
+ - text: LOG()
+ type: FUNCTION
+ - text: LOG10()
+ type: FUNCTION
+ - text: LOG2()
+ type: FUNCTION
+ - text: LOWER()
+ type: FUNCTION
+ - text: LPAD()
+ type: FUNCTION
+ - text: LTRIM()
+ type: FUNCTION
+ - text: LineString()
+ type: FUNCTION
+ - text: MAKEDATE()
+ type: FUNCTION
+ - text: MAKETIME()
+ type: FUNCTION
+ - text: MAKE_SET()
+ type: FUNCTION
+ - text: MASTER_POS_WAIT()
+ type: FUNCTION
+ - text: MATCH()
+ type: FUNCTION
+ - text: MAX()
+ type: FUNCTION
+ - text: MBRContains()
+ type: FUNCTION
+ - text: MBRCoveredBy()
+ type: FUNCTION
+ - text: MBRCovers()
+ type: FUNCTION
+ - text: MBRDisjoint()
+ type: FUNCTION
+ - text: MBREquals()
+ type: FUNCTION
+ - text: MBRIntersects()
+ type: FUNCTION
+ - text: MBROverlaps()
+ type: FUNCTION
+ - text: MBRTouches()
+ type: FUNCTION
+ - text: MBRWithin()
+ type: FUNCTION
+ - text: MD5()
+ type: FUNCTION
+ - text: MEMBER OF()
+ type: FUNCTION
+ - text: MICROSECOND()
+ type: FUNCTION
+ - text: MID()
+ type: FUNCTION
+ - text: MIN()
+ type: FUNCTION
+ - text: MINUTE()
+ type: FUNCTION
+ - text: MOD()
+ type: FUNCTION
+ - text: MONTH()
+ type: FUNCTION
+ - text: MONTHNAME()
+ type: FUNCTION
+ - text: MultiLineString()
+ type: FUNCTION
+ - text: MultiPoint()
+ type: FUNCTION
+ - text: MultiPolygon()
+ type: FUNCTION
+ - text: NAME_CONST()
+ type: FUNCTION
+ - text: NOT IN()
+ type: FUNCTION
+ - text: NOW()
+ type: FUNCTION
+ - text: NTH_VALUE()
+ type: FUNCTION
+ - text: NTILE()
+ type: FUNCTION
+ - text: NULLIF()
+ type: FUNCTION
+ - text: OCT()
+ type: FUNCTION
+ - text: OCTET_LENGTH()
+ type: FUNCTION
+ - text: ORD()
+ type: FUNCTION
+ - text: PERCENT_RANK()
+ type: FUNCTION
+ - text: PERIOD_ADD()
+ type: FUNCTION
+ - text: PERIOD_DIFF()
+ type: FUNCTION
+ - text: PI()
+ type: FUNCTION
+ - text: POSITION()
+ type: FUNCTION
+ - text: POW()
+ type: FUNCTION
+ - text: POWER()
+ type: FUNCTION
+ - text: PS_CURRENT_THREAD_ID()
+ type: FUNCTION
+ - text: PS_THREAD_ID()
+ type: FUNCTION
+ - text: Point()
+ type: FUNCTION
+ - text: Polygon()
+ type: FUNCTION
+ - text: QUARTER()
+ type: FUNCTION
+ - text: QUOTE()
+ type: FUNCTION
+ - text: RADIANS()
+ type: FUNCTION
+ - text: RAND()
+ type: FUNCTION
+ - text: RANDOM_BYTES()
+ type: FUNCTION
+ - text: RANK()
+ type: FUNCTION
+ - text: REGEXP_INSTR()
+ type: FUNCTION
+ - text: REGEXP_LIKE()
+ type: FUNCTION
+ - text: REGEXP_REPLACE()
+ type: FUNCTION
+ - text: REGEXP_SUBSTR()
+ type: FUNCTION
+ - text: RELEASE_ALL_LOCKS()
+ type: FUNCTION
+ - text: RELEASE_LOCK()
+ type: FUNCTION
+ - text: REPEAT()
+ type: FUNCTION
+ - text: REPLACE()
+ type: FUNCTION
+ - text: REVERSE()
+ type: FUNCTION
+ - text: RIGHT()
+ type: FUNCTION
+ - text: ROLES_GRAPHML()
+ type: FUNCTION
+ - text: ROUND()
+ type: FUNCTION
+ - text: ROW_COUNT()
+ type: FUNCTION
+ - text: ROW_NUMBER()
+ type: FUNCTION
+ - text: RPAD()
+ type: FUNCTION
+ - text: RTRIM()
+ type: FUNCTION
+ - text: SCHEMA()
+ type: FUNCTION
+ - text: SECOND()
+ type: FUNCTION
+ - text: SEC_TO_TIME()
+ type: FUNCTION
+ - text: SESSION_USER()
+ type: FUNCTION
+ - text: SHA()
+ type: FUNCTION
+ - text: SHA1()
+ type: FUNCTION
+ - text: SHA2()
+ type: FUNCTION
+ - text: SIGN()
+ type: FUNCTION
+ - text: SIN()
+ type: FUNCTION
+ - text: SLEEP()
+ type: FUNCTION
+ - text: SOUNDEX()
+ type: FUNCTION
+ - text: SOURCE_POS_WAIT()
+ type: FUNCTION
+ - text: SPACE()
+ type: FUNCTION
+ - text: SQRT()
+ type: FUNCTION
+ - text: STATEMENT_DIGEST()
+ type: FUNCTION
+ - text: STATEMENT_DIGEST_TEXT()
+ type: FUNCTION
+ - text: STD()
+ type: FUNCTION
+ - text: STDDEV()
+ type: FUNCTION
+ - text: STDDEV_POP()
+ type: FUNCTION
+ - text: STDDEV_SAMP()
+ type: FUNCTION
+ - text: STRCMP()
+ type: FUNCTION
+ - text: STR_TO_DATE()
+ type: FUNCTION
+ - text: ST_Area()
+ type: FUNCTION
+ - text: ST_AsBinary()
+ type: FUNCTION
+ - text: ST_AsGeoJSON()
+ type: FUNCTION
+ - text: ST_AsText()
+ type: FUNCTION
+ - text: ST_AsWKB()
+ type: FUNCTION
+ - text: ST_AsWKT()
+ type: FUNCTION
+ - text: ST_Buffer()
+ type: FUNCTION
+ - text: ST_Buffer_Strategy()
+ type: FUNCTION
+ - text: ST_Centroid()
+ type: FUNCTION
+ - text: ST_Collect()
+ type: FUNCTION
+ - text: ST_Contains()
+ type: FUNCTION
+ - text: ST_ConvexHull()
+ type: FUNCTION
+ - text: ST_Crosses()
+ type: FUNCTION
+ - text: ST_Difference()
+ type: FUNCTION
+ - text: ST_Dimension()
+ type: FUNCTION
+ - text: ST_Disjoint()
+ type: FUNCTION
+ - text: ST_Distance()
+ type: FUNCTION
+ - text: ST_Distance_Sphere()
+ type: FUNCTION
+ - text: ST_EndPoint()
+ type: FUNCTION
+ - text: ST_Envelope()
+ type: FUNCTION
+ - text: ST_Equals()
+ type: FUNCTION
+ - text: ST_ExteriorRing()
+ type: FUNCTION
+ - text: ST_FrechetDistance()
+ type: FUNCTION
+ - text: ST_GeoHash()
+ type: FUNCTION
+ - text: ST_GeomCollFromText()
+ type: FUNCTION
+ - text: ST_GeomCollFromTxt()
+ type: FUNCTION
+ - text: ST_GeomCollFromWKB()
+ type: FUNCTION
+ - text: ST_GeomFromGeoJSON()
+ type: FUNCTION
+ - text: ST_GeomFromText()
+ type: FUNCTION
+ - text: ST_GeomFromWKB()
+ type: FUNCTION
+ - text: ST_GeometryCollectionFromText()
+ type: FUNCTION
+ - text: ST_GeometryCollectionFromWKB()
+ type: FUNCTION
+ - text: ST_GeometryFromText()
+ type: FUNCTION
+ - text: ST_GeometryFromWKB()
+ type: FUNCTION
+ - text: ST_GeometryN()
+ type: FUNCTION
+ - text: ST_GeometryType()
+ type: FUNCTION
+ - text: ST_HausdorffDistance()
+ type: FUNCTION
+ - text: ST_InteriorRingN()
+ type: FUNCTION
+ - text: ST_Intersection()
+ type: FUNCTION
+ - text: ST_Intersects()
+ type: FUNCTION
+ - text: ST_IsClosed()
+ type: FUNCTION
+ - text: ST_IsEmpty()
+ type: FUNCTION
+ - text: ST_IsSimple()
+ type: FUNCTION
+ - text: ST_IsValid()
+ type: FUNCTION
+ - text: ST_LatFromGeoHash()
+ type: FUNCTION
+ - text: ST_Latitude()
+ type: FUNCTION
+ - text: ST_Length()
+ type: FUNCTION
+ - text: ST_LineFromText()
+ type: FUNCTION
+ - text: ST_LineFromWKB()
+ type: FUNCTION
+ - text: ST_LineInterpolatePoint()
+ type: FUNCTION
+ - text: ST_LineInterpolatePoints()
+ type: FUNCTION
+ - text: ST_LineStringFromText()
+ type: FUNCTION
+ - text: ST_LineStringFromWKB()
+ type: FUNCTION
+ - text: ST_LongFromGeoHash()
+ type: FUNCTION
+ - text: ST_Longitude()
+ type: FUNCTION
+ - text: ST_MLineFromText()
+ type: FUNCTION
+ - text: ST_MLineFromWKB()
+ type: FUNCTION
+ - text: ST_MPointFromText()
+ type: FUNCTION
+ - text: ST_MPointFromWKB()
+ type: FUNCTION
+ - text: ST_MPolyFromText()
+ type: FUNCTION
+ - text: ST_MPolyFromWKB()
+ type: FUNCTION
+ - text: ST_MakeEnvelope()
+ type: FUNCTION
+ - text: ST_MultiLineStringFromText()
+ type: FUNCTION
+ - text: ST_MultiLineStringFromWKB()
+ type: FUNCTION
+ - text: ST_MultiPointFromText()
+ type: FUNCTION
+ - text: ST_MultiPointFromWKB()
+ type: FUNCTION
+ - text: ST_MultiPolygonFromText()
+ type: FUNCTION
+ - text: ST_MultiPolygonFromWKB()
+ type: FUNCTION
+ - text: ST_NumGeometries()
+ type: FUNCTION
+ - text: ST_NumInteriorRing()
+ type: FUNCTION
+ - text: ST_NumInteriorRings()
+ type: FUNCTION
+ - text: ST_NumPoints()
+ type: FUNCTION
+ - text: ST_Overlaps()
+ type: FUNCTION
+ - text: ST_PointAtDistance()
+ type: FUNCTION
+ - text: ST_PointFromGeoHash()
+ type: FUNCTION
+ - text: ST_PointFromText()
+ type: FUNCTION
+ - text: ST_PointFromWKB()
+ type: FUNCTION
+ - text: ST_PointN()
+ type: FUNCTION
+ - text: ST_PolyFromText()
+ type: FUNCTION
+ - text: ST_PolyFromWKB()
+ type: FUNCTION
+ - text: ST_PolygonFromText()
+ type: FUNCTION
+ - text: ST_PolygonFromWKB()
+ type: FUNCTION
+ - text: ST_SRID()
+ type: FUNCTION
+ - text: ST_Simplify()
+ type: FUNCTION
+ - text: ST_StartPoint()
+ type: FUNCTION
+ - text: ST_SwapXY()
+ type: FUNCTION
+ - text: ST_SymDifference()
+ type: FUNCTION
+ - text: ST_Touches()
+ type: FUNCTION
+ - text: ST_Transform()
+ type: FUNCTION
+ - text: ST_Union()
+ type: FUNCTION
+ - text: ST_Validate()
+ type: FUNCTION
+ - text: ST_Within()
+ type: FUNCTION
+ - text: ST_X()
+ type: FUNCTION
+ - text: ST_Y()
+ type: FUNCTION
+ - text: SUBDATE()
+ type: FUNCTION
+ - text: SUBSTR()
+ type: FUNCTION
+ - text: SUBSTRING()
+ type: FUNCTION
+ - text: SUBSTRING_INDEX()
+ type: FUNCTION
+ - text: SUBTIME()
+ type: FUNCTION
+ - text: SUM()
+ type: FUNCTION
+ - text: SYSDATE()
+ type: FUNCTION
+ - text: SYSTEM_USER()
+ type: FUNCTION
+ - text: TAN()
+ type: FUNCTION
+ - text: TIME()
+ type: FUNCTION
+ - text: TIMEDIFF()
+ type: FUNCTION
+ - text: TIMESTAMP()
+ type: FUNCTION
+ - text: TIMESTAMPADD()
+ type: FUNCTION
+ - text: TIMESTAMPDIFF()
+ type: FUNCTION
+ - text: TIME_FORMAT()
+ type: FUNCTION
+ - text: TIME_TO_SEC()
+ type: FUNCTION
+ - text: TO_BASE64()
+ type: FUNCTION
+ - text: TO_DAYS()
+ type: FUNCTION
+ - text: TO_SECONDS()
+ type: FUNCTION
+ - text: TRIM()
+ type: FUNCTION
+ - text: TRUNCATE()
+ type: FUNCTION
+ - text: UCASE()
+ type: FUNCTION
+ - text: UNCOMPRESS()
+ type: FUNCTION
+ - text: UNCOMPRESSED_LENGTH()
+ type: FUNCTION
+ - text: UNHEX()
+ type: FUNCTION
+ - text: UNIX_TIMESTAMP()
+ type: FUNCTION
+ - text: UPPER()
+ type: FUNCTION
+ - text: USER()
+ type: FUNCTION
+ - text: UTC_DATE()
+ type: FUNCTION
+ - text: UTC_TIME()
+ type: FUNCTION
+ - text: UTC_TIMESTAMP()
+ type: FUNCTION
+ - text: UUID()
+ type: FUNCTION
+ - text: UUID_SHORT()
+ type: FUNCTION
+ - text: UUID_TO_BIN()
+ type: FUNCTION
+ - text: UpdateXML()
+ type: FUNCTION
+ - text: VALIDATE_PASSWORD_STRENGTH()
+ type: FUNCTION
+ - text: VALUES()
+ type: FUNCTION
+ - text: VARIANCE()
+ type: FUNCTION
+ - text: VAR_POP()
+ type: FUNCTION
+ - text: VAR_SAMP()
+ type: FUNCTION
+ - text: VERSION()
+ type: FUNCTION
+ - text: WAIT_FOR_EXECUTED_GTID_SET()
+ type: FUNCTION
+ - text: WAIT_UNTIL_SQL_THREAD_AFTER_GTIDS()
+ type: FUNCTION
+ - text: WEEK()
+ type: FUNCTION
+ - text: WEEKDAY()
+ type: FUNCTION
+ - text: WEEKOFYEAR()
+ type: FUNCTION
+ - text: WEIGHT_STRING()
+ type: FUNCTION
+ - text: YEAR()
+ type: FUNCTION
+ - text: YEARWEEK()
+ type: FUNCTION
+ - text: asynchronous_connection_failover_add_managed()
+ type: FUNCTION
+ - text: asynchronous_connection_failover_add_source()
+ type: FUNCTION
+ - text: asynchronous_connection_failover_delete_managed()
+ type: FUNCTION
+ - text: asynchronous_connection_failover_delete_source()
+ type: FUNCTION
+ - text: asynchronous_connection_failover_reset()
+ type: FUNCTION
+ - text: group_replication_disable_member_action()
+ type: FUNCTION
+ - text: group_replication_enable_member_action()
+ type: FUNCTION
+ - text: group_replication_get_communication_protocol()
+ type: FUNCTION
+ - text: group_replication_get_write_concurrency()
+ type: FUNCTION
+ - text: group_replication_reset_member_actions()
+ type: FUNCTION
+ - text: group_replication_set_as_primary()
+ type: FUNCTION
+ - text: group_replication_set_communication_protocol()
+ type: FUNCTION
+ - text: group_replication_set_write_concurrency()
+ type: FUNCTION
+ - text: group_replication_switch_to_multi_primary_mode()
+ type: FUNCTION
+ - text: group_replication_switch_to_single_primary_mode()
type: FUNCTION
- text: db
type: DATABASE
diff --git a/go.mod b/go.mod
index 976d61c5dd..cc8ef2f561 100644
--- a/go.mod
+++ b/go.mod
@@ -13,7 +13,7 @@ require (
github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.11.87
github.com/aws/aws-sdk-go-v2/service/s3 v1.40.0
github.com/blang/semver/v4 v4.0.0
- github.com/bytebase/mysql-parser v0.0.0-20231027071737-2b1ee7eca26c
+ github.com/bytebase/mysql-parser v0.0.0-20231117080012-40c25c7c076c
github.com/bytebase/plsql-parser v0.0.0-20231110065312-688a51648c4a
github.com/bytebase/postgresql-parser v0.0.0-20230926094140-aa337757cdd0
github.com/bytebase/snowsql-parser v0.0.0-20230706111031-cafd8faa2dc9
diff --git a/go.sum b/go.sum
index d7c64d1ba2..13e863be8b 100644
--- a/go.sum
+++ b/go.sum
@@ -152,8 +152,8 @@ github.com/bytebase/gh-ost v1.1.3-0.20230915044519-b37a6525f8f9 h1:Sk8tTyttWhoKj
github.com/bytebase/gh-ost v1.1.3-0.20230915044519-b37a6525f8f9/go.mod h1:/HsnX0+34LXVz3MxtZoW15GiwEOXz/PrEhutjb3icfE=
github.com/bytebase/go-obo v0.0.0-20231026081615-705a7fffbfd2 h1:nEHZi8S7PHT4GxP9GfJiuhO8KkYcHmePvy5BfiYxwNk=
github.com/bytebase/go-obo v0.0.0-20231026081615-705a7fffbfd2/go.mod h1:wjDx6Xm9q7dFtHJvIlrI99JytznLw5wQ4R+9mNXJwGI=
-github.com/bytebase/mysql-parser v0.0.0-20231027071737-2b1ee7eca26c h1:IzfBp1TpLr0tsaOpxq8jf00cvnWS11RowRP9+atxvSE=
-github.com/bytebase/mysql-parser v0.0.0-20231027071737-2b1ee7eca26c/go.mod h1:n22yoTeLcphIYQlV6nbufQbHMxNceOjeGDOrpaRIhiY=
+github.com/bytebase/mysql-parser v0.0.0-20231117080012-40c25c7c076c h1:cBlwIfQ8WJkz7XyBOUBw5dmFVhom65jPHlCaR9UzYlw=
+github.com/bytebase/mysql-parser v0.0.0-20231117080012-40c25c7c076c/go.mod h1:n22yoTeLcphIYQlV6nbufQbHMxNceOjeGDOrpaRIhiY=
github.com/bytebase/pg_query_go/v4 v4.0.0-20230802100607-2f34e68d96f5 h1:3Ihj6fsBY7rAKzOO2nxJocq9uOxARAwoalhC84ntjec=
github.com/bytebase/pg_query_go/v4 v4.0.0-20230802100607-2f34e68d96f5/go.mod h1:aEkDNOXNM5j0YGzaAapwJ7LB3dLNj+bvbWcLv1hOVqA=
github.com/bytebase/plsql-parser v0.0.0-20231110065312-688a51648c4a h1:2t4nAguPYBm7HWz8TA+HM6FWCdldfk7nmjTiksP2ZuE=