Helpers
class Helpers
Methods
static string|null
dump(Result|null $sql = null, bool $return = false)
Prints out a syntax highlighted version of the SQL command or Result.
static string|null
getSuggestion(array $items, string $value)
Finds the best suggestion.
static string|null
detectType(string $type)
Heuristic type detection.
static HashMap
getTypeCache()
No description
static void
alias(array $config, string $key, string $alias)
Apply configuration alias or default values.
static int
loadFromFile(Connection $connection, string $file, callable|null $onProgress = null)
Import SQL dump from file.
static mixed
false2Null(mixed $val)
No description
static int
intVal(mixed $value)
No description
Details
at line 21
static string|null
dump(Result|null $sql = null, bool $return = false)
Prints out a syntax highlighted version of the SQL command or Result.
at line 142
static string|null
getSuggestion(array $items, string $value)
internal |
Finds the best suggestion.
at line 159
static string
escape(Driver $driver, $value, string $type)
internal |
No description
at line 181
static string|null
detectType(string $type)
internal |
Heuristic type detection.
at line 208
static HashMap
getTypeCache()
internal |
No description
at line 221
static void
alias(array $config, string $key, string $alias)
Apply configuration alias or default values.
at line 239
static int
loadFromFile(Connection $connection, string $file, callable|null $onProgress = null)
Import SQL dump from file.
Returns count of sql commands
at line 285
static mixed
false2Null(mixed $val)
internal |
No description
at line 292
static int
intVal(mixed $value)
internal |
No description