class Helpers

Methods

static string
dump($sql = null, $return = false)

Prints out a syntax highlighted version of the SQL command or Result.

static string|null
getSuggestion(array $items, $value)

Finds the best suggestion.

static 
escape(Driver $driver, $value, $type)

No description

static string|null
detectType($type)

Heuristic type detection.

static 
getTypeCache()

No description

static void
alias($config, $key, $alias)

Apply configuration alias or default values.

static int
loadFromFile(Connection $connection, $file, callable $onProgress = null)

Import SQL dump from file.

static string|int
intVal($value)

No description

Details

at line 25
static string dump($sql = null, $return = false)

Prints out a syntax highlighted version of the SQL command or Result.

Parameters

$sql
$return

Return Value

string

at line 142
static string|null getSuggestion(array $items, $value)

internal  
 

Finds the best suggestion.

Parameters

array $items
$value

Return Value

string|null

at line 158
static escape(Driver $driver, $value, $type)

internal  
 

No description

Parameters

Driver $driver
$value
$type

at line 182
static string|null detectType($type)

internal  
 

Heuristic type detection.

Parameters

$type

Return Value

string|null

at line 208
static getTypeCache()

internal  
 

No description

at line 224
static void alias($config, $key, $alias)

Apply configuration alias or default values.

Parameters

$config
$key
$alias

Return Value

void

at line 242
static int loadFromFile(Connection $connection, $file, callable $onProgress = null)

Import SQL dump from file.

Parameters

Connection $connection
$file
callable $onProgress

Return Value

int

count of sql commands

at line 291
static string|int intVal($value)

internal  
 

No description

Parameters

$value

Return Value

string|int

Traits

Better OOP experience.