Skip to content
Collection of useful functions, stored procedures and SQL scripts to facilitate your job!
PLpgSQL
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Functions_and_procedures Added function lastIndexOf Jan 27, 2020
.gitattributes :octocat: Added .gitattributes & .gitignore files Mar 3, 2019
.gitignore :octocat: Added .gitattributes & .gitignore files Mar 3, 2019
LICENSE Very first publish to GitHub! Mar 7, 2019
README.md Added function lastIndexOf Jan 27, 2020

README.md

MySQL Toolkit

A collection of useful (I hope!) functions, stored procedures and SQL scripts to facilitate your job!

Functions

ascii_sort : Sorts all characters of a string based on ASCII value.
collapse_blanks : Replaces multiple blanks with a single space.
collapse_spaces : Replaces multiple spaces with a single space.
initcap : Returns a character string with the first letter of each word converted to uppercase. This function EXACTLY mimics INITCAP of Oracle.
isProvince : Returns 1 if argument is a Canadian 2-letter province code, 0 otherwise.
isState : Returns 1 if argument is an American 2-letter state code, 0 otherwise.
lastindexof : Returns the position of the last occurrence of a substring in a source string.
occurrences : Returns the number of occurrences of a search string inside a source string.
rot5 : Encodes/decodes a string with the ROT5 substitution cipher.
rot13 : Encodes/decodes a string with the ROT13 substitution cipher.
rot18 : Encodes/decodes a string with the ROT18 substitution cipher.
rot47 :Encodes/decodes a string with the ROT47 substitution cipher.
shuffle : Randomly shuffle the characters of a string using the Fisher-Yates (aka Knuth shuffle) algorithm.
snowflake_to_timestamp : Extracts the creation time (timestamp) of a snowflake.
to_roman : Converts an integer to its Roman numeral representation.

This README is still under development.

More details on this toolkit can/will be found on my blog L'endormitoire.

You can’t perform that action at this time.