Skip to content

Commit

Permalink
Update SQLite function list to SQLite 3.44.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Nov 10, 2023
1 parent 90c0919 commit 5987960
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ Latest development builds (artifacts in Release configuration for each compiler
* SQL Query
* [SQL Standard](tools/lang/SQL.sql), up to SQL:2016.
* [MySQL](tools/lang/MySQL.sql), up to MySQL 8.0, MariaDB 10.9.
* [SQLite3](tools/lang/SQLite3.sql), up to 3.41.
* [SQLite3](tools/lang/SQLite3.sql), up to 3.44.
* [PostgreSQL](tools/lang/PostgreSQL.sql), PostgreSQL 14.
* [Transact-SQL](tools/lang/Transact-SQL.sql), SQL Server 2019.
* [Oracle](tools/lang/Oracle.sql), Oracle 20, incomplete.
Expand Down
6 changes: 3 additions & 3 deletions src/EditLexers/stlSQL.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,8 @@ static KEYWORDLIST Keywords_SQL = {{
"st_pointfromgeohash( st_pointfromtext( st_pointfromwkb( st_pointn( st_pointonsurface( "
"st_polyfromtext( st_polyfromwkb( st_polygonfromtext( st_polygonfromwkb( st_relate( "
"st_simplify( st_srid( st_startpoint( st_swapxy( st_symdifference( st_touches( st_transform( st_union( st_validate( "
"st_within( st_x( st_y( startpoint( statement_digest( statement_digest_text( std( stddev( str_to_date( strcmp( strftime( "
"subdate( substr( substring_index( subtime( "
"st_within( st_x( st_y( startpoint( statement_digest( statement_digest_text( std( stddev( "
"str_to_date( strcmp( strftime( string_agg( subdate( substr( substring_index( subtime( "
"time_format( time_to_sec( timediff( to_base64( to_days( to_seconds( total( total_changes( touches( typeof( "
"ucase( uncompress( uncompressed_length( unhex( unix_timestamp( unixepoch( unlikely( updatexml( uuid_short( uuid_to_bin( "
"validate_password_strength( variance( "
Expand Down Expand Up @@ -466,7 +466,7 @@ static KEYWORDLIST Keywords_SQL = {{
"SPACE( SPIDER_BG_DIRECT_SQL( SPIDER_COPY_TABLES( SPIDER_DIRECT_SQL( SPIDER_FLUSH_TABLE_MON_CACHE( "
"SQLITE_COMPILEOPTION_GET( SQLITE_COMPILEOPTION_USED( SQLITE_OFFSET( SQLITE_SOURCE_ID( SQLITE_VERSION( "
"SQL_THREAD_WAIT_AFTER_GTIDS( SQRT( SRID( STATEMENT_DIGEST( STATEMENT_DIGEST_TEXT( STD( STDDEV( STDDEV_POP( STDDEV_SAMP( "
"STRCMP( STRFTIME( STR_TO_DATE( ST_Area( ST_AsBinary( ST_AsGeoJSON( ST_AsText( ST_AsWKB( ST_AsWKT( "
"STRCMP( STRFTIME( STRING_AGG( STR_TO_DATE( ST_Area( ST_AsBinary( ST_AsGeoJSON( ST_AsText( ST_AsWKB( ST_AsWKT( "
"ST_Boundary( ST_Buffer( ST_Buffer_Strategy( ST_Centroid( ST_Contains( ST_ConvexHull( ST_Crosses( "
"ST_Difference( ST_Dimension( ST_Disjoint( ST_Distance( ST_Distance_Sphere( "
"ST_EndPoint( ST_Envelope( ST_Equals( ST_ExteriorRing( ST_GeoHash( "
Expand Down
7 changes: 6 additions & 1 deletion tools/lang/SQLite3.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-- 3.41 https://sqlite.org/lang.html
-- 3.44 https://sqlite.org/lang.html
--! keywords ===========================================================
-- https://sqlite.org/lang_keywords.html
ABORT
Expand Down Expand Up @@ -200,6 +200,7 @@ count(*)
count(X)
group_concat(X)
group_concat(X, Y)
string_agg(X, Y)
max(X)
min(X)
sum(X)
Expand All @@ -212,6 +213,7 @@ datetime(timestring, modifier, modifier, ...)
julianday(timestring, modifier, modifier, ...)
unixepoch(time-value, modifier, modifier, ...)
strftime(format, timestring, modifier, modifier, ...)
timediff(time-value, time-value)
-- Built-in Window Functions
-- https://sqlite.org/windowfunctions.html#biwinfunc
row_number()
Expand All @@ -235,6 +237,8 @@ abs(X)
changes()
char(X1, X2, ..., XN)
coalesce(X, Y, ...)
concat(X,...)
concat_ws(SEP,X,...)
format(FORMAT,...)
glob(X, Y)
hex(X)
Expand All @@ -255,6 +259,7 @@ ltrim(X, Y)
max(X, Y, ...)
min(X, Y, ...)
nullif(X, Y)
octet_length(X)
printf(FORMAT, ...)
quote(X)
random()
Expand Down

0 comments on commit 5987960

Please sign in to comment.