public interface CharCollation
| Modifier and Type | Field and Description |
|---|---|
static int |
BINARY_ID
The binary collation.
|
| Modifier and Type | Method and Description |
|---|---|
static CharCollation |
clientCharCollation()
WARNING: this method is internal method in `r2dbc-mysql`, it is UNSTABLE and may change.
|
static CharCollation |
fromId(int id,
CodecContext context)
Obtain an instance of
CharCollation from the identifier and server version, if not found, it
will fall back to UTF-8. |
int |
getByteSize()
Get the maximum byte width/size of the character collation.
|
Charset |
getCharset()
Get the most suitable character set.
|
int |
getId()
Get the character collation identifier.
|
String |
getName()
Get the name of the character collation.
|
static final int BINARY_ID
int getId()
String getName()
int getByteSize()
Charset getCharset()
Charset.static CharCollation fromId(int id, CodecContext context)
CharCollation from the identifier and server version, if not found, it
will fall back to UTF-8. (i.e. utf8mb4)id - character collation identifier.context - the codec context of server.CharCollation.IllegalArgumentException - if version is null.static CharCollation clientCharCollation()
Copyright © 2018–2024 asyncer.io. All rights reserved.