Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat : Dialects MySQL string fuction #162

Merged
merged 3 commits into from
Oct 9, 2023

Conversation

vicheanath
Copy link
Contributor

@vicheanath vicheanath commented Oct 6, 2023

Added: dailects mysql string function #160

  • ASCII() Return numeric value of left-most character
  • BIN() Return a string containing binary representation of a number
  • BIT_LENGTH() Return length of argument in bits
  • CHAR() Return the character for each integer passed
  • CHAR_LENGTH() Return number of characters in argument
  • CHARACTER_LENGTH() Synonym for CHAR_LENGTH()
  • CONCAT() Return concatenated string
  • CONCAT_WS() Return concatenate with separator
  • ELT() Return string at index number
  • EXPORT_SET() Return a string such that for every bit set in the value bits, you get an on string and for every unset bit, you get an off string
  • FIELD() Index (position) of first argument in subsequent arguments
  • FIND_IN_SET() Index (position) of first argument within second argument
  • FORMAT() Return a number formatted to specified number of decimal places
  • FROM_BASE64() Decode base64 encoded string and return result
  • HEX() Hexadecimal representation of decimal or string value
  • INSERT() Insert substring at specified position up to specified number of characters
  • INSTR() Return the index of the first occurrence of substring
  • LCASE() Synonym for LOWER()
  • LEFT() Return the leftmost number of characters as specified
  • LENGTH() Return the length of a string in bytes
  • LIKE Simple pattern matching
  • LOAD_FILE() Load the named file
  • LOCATE() Return the position of the first occurrence of substring
  • LOWER() Return the argument in lowercase
  • LPAD() Return the string argument, left-padded with the specified string
  • LTRIM() Remove leading spaces
  • MAKE_SET() Return a set of comma-separated strings that have the corresponding bit in bits set
  • MATCH() Perform full-text search
  • MID() Return a substring starting from the specified position
  • NOT LIKE Negation of simple pattern matching
  • NOT REGEXP Negation of REGEXP
  • OCT() Return a string containing octal representation of a number
  • OCTET_LENGTH() Synonym for LENGTH()
  • ORD() Return character code for leftmost character of the argument
  • POSITION() Synonym for LOCATE()
  • QUOTE() Escape the argument for use in an SQL statement
  • REGEXP Whether string matches regular expression
  • REGEXP_INSTR() Starting index of substring matching regular expression
  • REGEXP_LIKE() Whether string matches regular expression
  • REGEXP_REPLACE() Replace substrings matching regular expression
  • REGEXP_SUBSTR() Return substring matching regular expression
  • REPEAT() Repeat a string the specified number of times
  • REPLACE() Replace occurrences of a specified string
  • REVERSE() Reverse the characters in a string
  • RIGHT() Return the specified rightmost number of characters
  • RLIKE Whether string matches regular expression
  • RPAD() Append string the specified number of times
  • RTRIM() Remove trailing spaces
  • SOUNDEX() Return a soundex string
  • SOUNDS LIKE Compare sounds
  • SPACE() Return a string of the specified number of spaces
  • STRCMP() Compare two strings
  • SUBSTR() Return the substring as specified
  • SUBSTRING() Return the substring as specified
  • SUBSTRING_INDEX() Return a substring from a string before the specified number of occurrences of the delimiter
  • TO_BASE64() Return the argument converted to a base-64 string
  • TRIM() Remove leading and trailing spaces
  • UCASE() Synonym for UPPER()
  • UNHEX() Return a string containing hex representation of a number
  • UPPER() Convert to uppercase
  • WEIGHT_STRING() Return the weight string for a string

@vicheanath
Copy link
Contributor Author

I have checked and tested it all check function is already in PR

@vicheanath
Copy link
Contributor Author

for CHAR() i think i have problem about dialects script it can't extract this [CHAR(N,... [USING charset_name])].

@invisal
Copy link
Collaborator

invisal commented Oct 8, 2023

for CHAR() i think i have problem about dialects script it can't extract this [CHAR(N,... [USING charset_name])].

Yes. It is okay. You can fill those information first. I will check about the dialects problem that conflict with some of doc.

@invisal
Copy link
Collaborator

invisal commented Oct 8, 2023

Let me know if it is all ready and I will do review and merge.

@vicheanath
Copy link
Contributor Author

for some expressions that are not a function, it will not pop up document tools tip:
Screenshot 2023-10-08 at 10 08 27 AM

It should be like this

Screenshot 2023-10-08 at 10 10 54 AM

that is issue i will create only document, and we fixed them later

@invisal invisal changed the title Added : Dialects MySQL string fuction feat : Dialects MySQL string fuction Oct 9, 2023
@invisal invisal merged commit cf26feb into querymx:main Oct 9, 2023
1 check passed
@vicheanath vicheanath deleted the create-dialects-mysql-fuction branch October 9, 2023 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants