Helpers
class Helpers
Methods
static string|null
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
false2Null($val)
No description
static int
intVal($value)
No description
Details
at line 25
static string|null
dump(string|Result $sql = null, bool $return = false)
Prints out a syntax highlighted version of the SQL command or Result.
at line 146
static string|null
getSuggestion(array $items, string $value)
internal |
Finds the best suggestion.
at line 163
static string
escape(Driver $driver, $value, string $type)
internal |
No description
at line 185
static string|null
detectType(string $type)
internal |
Heuristic type detection.
at line 212
static HashMap
getTypeCache()
internal |
No description
at line 225
static void
alias(array $config, string $key, string $alias)
Apply configuration alias or default values.
at line 243
static int
loadFromFile(Connection $connection, string $file, callable|null $onProgress = null)
Import SQL dump from file.
at line 289
static
false2Null($val)
internal |
No description
at line 296
static int
intVal($value)
internal |
No description
Traits
Better OOP experience.