class Charsets

Class used to manage MySQL charsets

Properties

static array $mysqlCharsetMap MySQL charsets map

Methods

static Charset
getServerCharset(DatabaseInterface $dbi, bool $disableIs)

Get current server charset

static array
getCharsets(DatabaseInterface $dbi, bool $disableIs)

Get all server charsets

static array
getCollations(DatabaseInterface $dbi, bool $disableIs)

Get all server collations

static Collation|null
findCollationByName(DatabaseInterface $dbi, bool $disableIs, string|null $name)

No description

Details

at line 150
static Charset getServerCharset(DatabaseInterface $dbi, bool $disableIs)

Get current server charset

Parameters

DatabaseInterface $dbi DatabaseInterface instance
bool $disableIs Disable use of INFORMATION_SCHEMA

Return Value

Charset

at line 169
static array getCharsets(DatabaseInterface $dbi, bool $disableIs)

Get all server charsets

Parameters

DatabaseInterface $dbi DatabaseInterface instance
bool $disableIs Disable use of INFORMATION_SCHEMA

Return Value

array

at line 183
static array getCollations(DatabaseInterface $dbi, bool $disableIs)

Get all server collations

Parameters

DatabaseInterface $dbi DatabaseInterface instance
bool $disableIs Disable use of INFORMATION_SCHEMA

Return Value

array

at line 196
static Collation|null findCollationByName(DatabaseInterface $dbi, bool $disableIs, string|null $name)

Parameters

DatabaseInterface $dbi DatabaseInterface instance
bool $disableIs Disable use of INFORMATION_SCHEMA
string|null $name Collation name

Return Value

Collation|null