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 $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 142
static string|null
getSuggestion(array $items, string $value)
internal |
Finds the best suggestion.
at line 158
static string
escape(Driver $driver, $value, string $type)
internal |
No description
at line 180
static string|null
detectType(string $type)
internal |
Heuristic type detection.
at line 205
static HashMap
getTypeCache()
internal |
No description
at line 217
static void
alias(array $config, string $key, string $alias)
Apply configuration alias or default values.
at line 235
static int
loadFromFile(Connection $connection, string $file, callable $onProgress = null)
Import SQL dump from file.
at line 281
static
false2Null($val)
internal |
No description
at line 288
static int
intVal($value)
internal |
No description
Traits
Better OOP experience.