GLOB

Creates a GLOB pattern-matching expression, which is similar to LIKE but uses Unix-style wildcards.

The GLOB operator is case-sensitive by default, unlike LIKE. Its wildcards are:

  • * asterisk: Matches any sequence of zero or more characters.

  • ? question mark: Matches any single character.

This operator is useful for simple file-path-like pattern matching.

Example

// Find all files ending with ".txt"
// Generates: "file_name" GLOB '*.txt'
Files.fileName GLOB "*.txt"

// Find files with a single character extension
// Generates: "file_name" GLOB '*_?'
Files.fileName GLOB "*_?"

Return

An Expression representing the GLOB condition.

Author

MOHAMMAD AZIM ANSARI

Parameters

value

The glob pattern string to match against.

See also


infix fun <T : String?> KQLiteColumn<*>.GLOB(value: KQLiteColumn<out T>): Clause.Expression