sqlIdentifierSplit

fnstring[] sqlIdentifierSplit(string id)

Splits id into an array of it sub parts. id's format has to be "<part>[.<part>[...]]" where each part is either a text surrounded by double quotes which can contain upper and lower cases or an SQL identifier in lower case.

For example the <![CDATA["test.\"ATable\""]]> string will result in the array: <![CDATA[{"test", "\"ATable\"", NULL}]]>

Parameters

idan SQL identifier

Returns

a new null-terminated array of strings, or NULL (use [glib.global.strfreev] to free the returned array)