Skip to content

Commit 1f0ca70

Browse files
author
Yvon Vieville
committed
pb choice
1 parent 6c68bed commit 1f0ca70

File tree

1 file changed

+144
-4
lines changed

1 file changed

+144
-4
lines changed

src/language/snippets/scalars.code-snippets

Lines changed: 144 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@
500500
},
501501
"land": {
502502
"prefix": "land",
503-
"body": "land(${1:expression},${2:expression},${3:expression?})",
503+
"body": "land(${1:expression},${2:expression+})",
504504
"description": "The LAND function returns a string that is the logical 'AND' of the argument strings. This function takes the first argument string, does an AND operation with the next string, and then continues to do AND operations with each successive argument using the previous result."
505505
},
506506
"last_day": {
@@ -550,7 +550,7 @@
550550
},
551551
"lor": {
552552
"prefix": "lor",
553-
"body": "lor(${1:expression},${2:expression},${3:expression?})",
553+
"body": "lor(${1:expression},${2:expression+})",
554554
"description": "The LOR function returns a string that is the logical OR of the argument strings."
555555
},
556556
"lpad": {
@@ -565,7 +565,7 @@
565565
},
566566
"max": {
567567
"prefix": "max",
568-
"body": "max(${1:expression},${2:expression},${3:expression?})",
568+
"body": "max(${1:expression},${2:expression+})",
569569
"description": "The MAX scalar function returns the maximum value in a set of values."
570570
},
571571
"max_cardinality": {
@@ -585,7 +585,7 @@
585585
},
586586
"min": {
587587
"prefix": "min",
588-
"body": "min(${1:expression},${2:expression},${3:expression?})",
588+
"body": "min(${1:expression},${2:expression+})",
589589
"description": "The MIN scalar function returns the minimum value in a set of values."
590590
},
591591
"minute": {
@@ -703,6 +703,146 @@
703703
"body": "quarter(${1:expression})",
704704
"description": "The QUARTER function returns an integer between 1 and 4 that represents the quarter of the year in which the date resides. For example, any dates in January, February, or March will return the integer 1."
705705
},
706+
"radians": {
707+
"prefix": "radians",
708+
"body": "radians(${1:expression})",
709+
"description": "The RADIANS function returns the number of radians for an argument that is expressed in degrees."
710+
},
711+
"raise_error": {
712+
"prefix": "raise_error",
713+
"body": "raise_error(${1:sqlstate},${2:diagnostic-string}))",
714+
"description": "The RAISE_ERROR function causes the statement that invokes the function to return an error with the specified SQLSTATE (along with SQLCODE -438) and diagnostic string."
715+
},
716+
"rand": {
717+
"prefix": "rand",
718+
"body": "rand(${1:expression})",
719+
"description": "The RAND function returns a floating point value greater than or equal to 0 and less than or equal to 1."
720+
},
721+
"real": {
722+
"prefix": "real",
723+
"body": "real(${1:numeric/string-expression})",
724+
"description": "The REAL function returns a single-precision floating-point representation."
725+
},
726+
"regexp_count": {
727+
"prefix": "regexp_count",
728+
"body": "regexp_count(${1:source-string},${2:pattern-expression}),${3:start?}),${4:flags?}))",
729+
"description": "The REGEXP_COUNT function returns a count of the number of times that a regular expression pattern is matched in a string."
730+
},
731+
"regexp_instr": {
732+
"prefix": "regexp_instr",
733+
"body": "regexp_instr(${1:source-string},${2:pattern-expression}),${3:start?}),${4:occurence?}),${5:return-option?}),${6:flags?}),${7:group?}))",
734+
"description": "The REGEXP_INSTR returns the starting position or the position after the end of the matched substring, depending on the value of the return_option argument."
735+
},
736+
"regexp_replace": {
737+
"prefix": "regexp_replace",
738+
"body": "regexp_replace(${1:source-string},${2:pattern-expression}),${3:replacement-string?}),${4:start?}),${5:occurence?}),${6:flags?}))",
739+
"description": "The REGEXP_REPLACE function returns a modified version of the source string where occurrences of the regular expression pattern found in the source string are replaced with the specified replacement string."
740+
},
741+
"regexp_substr": {
742+
"prefix": "regexp_substr",
743+
"body": "regexp_substr(${1:source-string},${2:pattern-expression}),${3:start?}),${4:occurence?}),${5:flags?}),${6:group?}))",
744+
"description": "The REGEXP_SUBSTR function returns one occurrence of a substring of a string that matches the regular expression pattern."
745+
},
746+
"repeat": {
747+
"prefix": "repeat",
748+
"body": "repeat(${1:expression},${2:integer}))",
749+
"description": "The REPEAT function returns a string composed of expression repeated integer times."
750+
},
751+
"replace": {
752+
"prefix": "replace",
753+
"body": "replace(${1:source-string},${2:search-string}),${3:replace-string?}))",
754+
"description": "The REPLACE function replaces all occurrences of search-string in source-string with replace-string. If search-string is not found in source-string, source-string is returned unchanged."
755+
},
756+
"rid": {
757+
"prefix": "rid",
758+
"body": "rid(${1:table-designator})",
759+
"description": "The RID function returns the relative record number of a row as a BIGINT."
760+
},
761+
"right": {
762+
"prefix": "right",
763+
"body": "right(${1:expression},${2:integer}))",
764+
"description": "The RIGHT function returns the rightmost integer characters of expression."
765+
},
766+
"round": {
767+
"prefix": "round",
768+
"body": "round(${1:expression},${2:expression?}))",
769+
"description": "The ROUND function returns expression–1 rounded to some number of places to the right or left of the decimal point."
770+
},
771+
"round_timestamp": {
772+
"prefix": "round_timestamp",
773+
"body": "round_timestamp(${1:expression},${2:format-string?}))",
774+
"description": "The ROUND_TIMESTAMP function returns a timestamp that is the expression rounded to the unit specified by the format-string. If format-string is not specified, expression is rounded to the nearest day, as if 'DD' was specified for format-string."
775+
},
776+
"rowid": {
777+
"prefix": "rowid",
778+
"body": "rowid(${1:string-expression})",
779+
"description": "The ROWID function casts a character string to a row ID."
780+
},
781+
"rpad": {
782+
"prefix": "rpad",
783+
"body": "rpad(${1:expression},${2:lenght}),${3:pad?}))",
784+
"description": "The RPAD function returns a string composed of expression that is padded on the right."
785+
},
786+
"rrn": {
787+
"prefix": "rrn",
788+
"body": "rrn(${1:table-designator})",
789+
"description": "The RRN function returns the relative record number of a row."
790+
},
791+
"rtrim": {
792+
"prefix": "rtrim",
793+
"body": "rtrim(${1:string-expression},${2:trim-expression?})",
794+
"description": "The RTRIM function removes any of the specified characters from the end of an expression."
795+
},
796+
"score": {
797+
"prefix": "score",
798+
"body": "score(${1:column-name},${2:search-argument},${3:search-argument-options?})",
799+
"description": "The SCORE function searches a text search index using criteria that are specified in a search argument and returns a relevance score that measures how well a document matches the query."
800+
},
801+
"second": {
802+
"prefix": "second",
803+
"body": "second(${1:expression},${2:precision-constant?})",
804+
"description": "The SECOND function returns the seconds part of a value with optional fractional seconds."
805+
},
806+
"sign": {
807+
"prefix": "sign",
808+
"body": "sign(${1:expression})",
809+
"description": "The SIGN function returns an indicator of the sign of expression."
810+
},
811+
"sin": {
812+
"prefix": "sin",
813+
"body": "sin(${1:expression})",
814+
"description": "The SIN function returns the sine of the argument, where the argument is an angle expressed in radians. The SIN and ASIN functions are inverse operations."
815+
},
816+
"sinh": {
817+
"prefix": "sinh",
818+
"body": "sinh(${1:expression})",
819+
"description": "The SINH function returns the hyperbolic sine of the argument, where the argument is an angle expressed in radians."
820+
},
821+
"smallint": {
822+
"prefix": "smallint",
823+
"body": "smallint(${1:numeric/string-expression})",
824+
"description": "The SMALLINT function returns a small integer representation."
825+
},
826+
"soundex": {
827+
"prefix": "soundex",
828+
"body": "soundex(${1:expression})",
829+
"description": "The SOUNDEX function returns a 4 character code representing the sound of the words in the argument. The result can be used to compare with the sound of other strings."
830+
},
831+
"space": {
832+
"prefix": "space",
833+
"body": "space(${1:expression})",
834+
"description": "The SPACE function returns a character string that consists of the number of SBCS blanks that the argument specifies."
835+
},
836+
"sqrt": {
837+
"prefix": "sqrt",
838+
"body": "sqrt(${1:expression})",
839+
"description": "The SQRT function returns the square root of a number."
840+
},
841+
"strip": {
842+
"prefix": "strip",
843+
"body": "strip(${1:expression},${2|BOTH,B,LEADING,L,TRAILING,T|},${3:strip-character?})",
844+
"description": "The STRIP function removes blanks or another specified character from the end, the beginning, or both ends of a string expression."
845+
},
706846
"xmlvalidate": {
707847
"prefix": "xmlvalidate",
708848
"body": "xmlvalidate(${1:XML-expression} ${2:ACCORDING TO XML SCHEMA ${3:ID XML-schema-name|{$4:URI XML-uri1|NO NAMESPACE} {$5:LOCATION XML-uri2}}}))",

0 commit comments

Comments
 (0)