class Charsets (View source)

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

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

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

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

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

No description

Parameters

DatabaseInterface $dbi

DatabaseInterface instance

bool $disableIs

Disable use of INFORMATION_SCHEMA

string|null $name

Collation name

Return Value

Collation|null