#[repr(transparent)]
pub struct Code(_);
Expand description

TDengine error code.

Implementations

Code from raw primitive type.

Success, 0

Unknown fails, 0xFFFF

TSC_INVALID_OPERATION: Invalid Operation

TSC_INVALID_QHANDLE: Invalid qhandle

TSC_INVALID_TIME_STAMP: Invalid combination of client/service time

TSC_INVALID_VALUE: Invalid value in client

TSC_INVALID_VERSION: Invalid client version

TSC_INVALID_IE: Invalid client ie

TSC_INVALID_FQDN: Invalid host name

TSC_INVALID_USER_LENGTH: Invalid user name

TSC_INVALID_PASS_LENGTH: Invalid password

TSC_INVALID_DB_LENGTH: Database name too long

TSC_INVALID_TABLE_ID_LENGTH: Table name too long

TSC_INVALID_CONNECTION: Invalid connection

TSC_OUT_OF_MEMORY: System out of memory

TSC_NO_DISKSPACE: System out of disk space

TSC_QUERY_CACHE_ERASED: Query cache erased

TSC_QUERY_CANCELLED: Query terminated

TSC_SORTED_RES_TOO_MANY: Result set too large to be sorted

TSC_APP_ERROR: Application error

TSC_ACTION_IN_PROGRESS: Action in progress

TSC_DISCONNECTED: Disconnected from service

TSC_NO_WRITE_AUTH: No write permission

TSC_CONN_KILLED: Connection killed

TSC_SQL_SYNTAX_ERROR: Syntax error in SQL

TSC_DB_NOT_SELECTED: Database not specified or available

TSC_INVALID_TABLE_NAME: Table does not exist

TSC_EXCEED_SQL_LIMIT: SQL statement too long check maxSQLLength config

TSC_FILE_EMPTY: File is empty

TSC_LINE_SYNTAX_ERROR: Syntax error in Line

TSC_NO_META_CACHED: No table meta cached

TSC_DUP_COL_NAMES: duplicated column names

TSC_INVALID_TAG_LENGTH: Invalid tag length

TSC_INVALID_COLUMN_LENGTH: Invalid column length

TSC_DUP_TAG_NAMES: duplicated tag names

TSC_INVALID_JSON: Invalid JSON format

TSC_INVALID_JSON_TYPE: Invalid JSON data type

TSC_INVALID_JSON_CONFIG: Invalid JSON configuration

TSC_VALUE_OUT_OF_RANGE: Value out of range

TSC_INVALID_PROTOCOL_TYPE: Invalid line protocol type

TSC_INVALID_PRECISION_TYPE: Invalid timestamp precision type

TSC_RES_TOO_MANY: Result set too large to be output

TSC_INVALID_SCHEMA_VERSION: invalid table schema version

MND_INVALID_TOPIC: Invalid topic nam

MND_INVALID_TOPIC_OPTION: Invalid topic optio

MND_INVALID_TOPIC_PARTITONS: Invalid topic partitons num, valid range: [1, 1000

MND_TOPIC_ALREADY_EXIST: Topic already exist

TDB_INVALID_TABLE_ID: Invalid table ID

TDB_INVALID_TABLE_TYPE: Invalid table type

TDB_IVD_TB_SCHEMA_VERSION: Invalid table schema version

TDB_TABLE_ALREADY_EXIST: Table already exists

TDB_INVALID_CONFIG: Invalid configuration

TDB_INIT_FAILED: Tsdb init failed

TDB_NO_DISKSPACE: No diskspace for tsdb

TDB_NO_DISK_PERMISSIONS: No permission for disk files

TDB_FILE_CORRUPTED: Data file(s) corrupted

TDB_OUT_OF_MEMORY: Out of memory

TDB_TAG_VER_OUT_OF_DATE: Tag too old

TDB_TIMESTAMP_OUT_OF_RANGE: Timestamp data out of range

TDB_SUBMIT_MSG_MSSED_UP: Submit message is messed up

TDB_INVALID_ACTION: Invalid operation

TDB_INVALID_CREATE_TB_MSG: Invalid creation of table

TDB_NO_TABLE_DATA_IN_MEM: No table data in memory skiplist

TDB_FILE_ALREADY_EXISTS: File already exists

TDB_TABLE_RECONFIGURE: Need to reconfigure table

TDB_IVD_CREATE_TABLE_INFO: Invalid information to create table

TDB_NO_AVAIL_DISK: No available disk

TDB_MESSED_MSG: TSDB messed message

TDB_IVLD_TAG_VAL: TSDB invalid tag value

TDB_NO_CACHE_LAST_ROW: TSDB no cache last row data

TDB_INCOMPLETE_DFILESET: TSDB incomplete DFileSet

QRY_INVALID_QHANDLE: Invalid handle

QRY_INVALID_MSG: Invalid message

QRY_NO_DISKSPACE: No diskspace for query

QRY_OUT_OF_MEMORY: System out of memory

QRY_APP_ERROR: Unexpected generic error in query

QRY_DUP_JOIN_KEY: Duplicated join key

QRY_EXCEED_TAGS_LIMIT: Tag condition too many

QRY_NOT_READY: Query not ready

QRY_HAS_RSP: Query should response

QRY_IN_EXEC: Multiple retrieval of this query

QRY_TOO_MANY_TIMEWINDOW: Too many time window in query

QRY_NOT_ENOUGH_BUFFER: Query buffer limit has reached

QRY_INCONSISTAN: File inconsistency in replica

QRY_SYS_ERROR: System error

QRY_INVALID_TIME_CONDITION: invalid time condition

QRY_INVALID_SCHEMA_VERSION: invalid schema version

TSC_INVALID_OPERATION: Invalid Operation

TSC_INVALID_QHANDLE: Invalid qhandle

TSC_INVALID_TIME_STAMP: Invalid combination of client/service time

TSC_INVALID_VALUE: Invalid value in client

TSC_INVALID_VERSION: Invalid client version

TSC_INVALID_IE: Invalid client ie

TSC_INVALID_FQDN: Invalid host name

TSC_INVALID_USER_LENGTH: Invalid user name

TSC_INVALID_PASS_LENGTH: Invalid password

TSC_INVALID_DB_LENGTH: Database name too long

TSC_INVALID_TABLE_ID_LENGTH: Table name too long

TSC_INVALID_CONNECTION: Invalid connection

TSC_OUT_OF_MEMORY: System out of memory

TSC_NO_DISKSPACE: System out of disk space

TSC_QUERY_CACHE_ERASED: Query cache erased

TSC_QUERY_CANCELLED: Query terminated

TSC_SORTED_RES_TOO_MANY: Result set too large to be sorted

TSC_APP_ERROR: Application error

TSC_ACTION_IN_PROGRESS: Action in progress

TSC_DISCONNECTED: Disconnected from service

TSC_NO_WRITE_AUTH: No write permission

TSC_CONN_KILLED: Connection killed

TSC_SQL_SYNTAX_ERROR: Syntax error in SQL

TSC_DB_NOT_SELECTED: Database not specified or available

TSC_INVALID_TABLE_NAME: Table does not exist

TSC_EXCEED_SQL_LIMIT: SQL statement too long check maxSQLLength config

TSC_FILE_EMPTY: File is empty

TSC_LINE_SYNTAX_ERROR: Syntax error in Line

TSC_NO_META_CACHED: No table meta cached

TSC_DUP_COL_NAMES: duplicated column names

TSC_INVALID_TAG_LENGTH: Invalid tag length

TSC_INVALID_COLUMN_LENGTH: Invalid column length

TSC_DUP_TAG_NAMES: duplicated tag names

TSC_INVALID_JSON: Invalid JSON format

TSC_INVALID_JSON_TYPE: Invalid JSON data type

TSC_INVALID_JSON_CONFIG: Invalid JSON configuration

TSC_VALUE_OUT_OF_RANGE: Value out of range

TSC_INVALID_PROTOCOL_TYPE: Invalid line protocol type

TSC_INVALID_PRECISION_TYPE: Invalid timestamp precision type

TSC_RES_TOO_MANY: Result set too large to be output

TSC_INVALID_SCHEMA_VERSION: invalid table schema version

MND_INVALID_TOPIC: Invalid topic nam

MND_INVALID_TOPIC_OPTION: Invalid topic optio

MND_INVALID_TOPIC_PARTITONS: Invalid topic partitons num, valid range: [1, 1000

MND_TOPIC_ALREADY_EXIST: Topic already exist

TDB_INVALID_TABLE_ID: Invalid table ID

TDB_INVALID_TABLE_TYPE: Invalid table type

TDB_IVD_TB_SCHEMA_VERSION: Invalid table schema version

TDB_TABLE_ALREADY_EXIST: Table already exists

TDB_INVALID_CONFIG: Invalid configuration

TDB_INIT_FAILED: Tsdb init failed

TDB_NO_DISKSPACE: No diskspace for tsdb

TDB_NO_DISK_PERMISSIONS: No permission for disk files

TDB_FILE_CORRUPTED: Data file(s) corrupted

TDB_OUT_OF_MEMORY: Out of memory

TDB_TAG_VER_OUT_OF_DATE: Tag too old

TDB_TIMESTAMP_OUT_OF_RANGE: Timestamp data out of range

TDB_SUBMIT_MSG_MSSED_UP: Submit message is messed up

TDB_INVALID_ACTION: Invalid operation

TDB_INVALID_CREATE_TB_MSG: Invalid creation of table

TDB_NO_TABLE_DATA_IN_MEM: No table data in memory skiplist

TDB_FILE_ALREADY_EXISTS: File already exists

TDB_TABLE_RECONFIGURE: Need to reconfigure table

TDB_IVD_CREATE_TABLE_INFO: Invalid information to create table

TDB_NO_AVAIL_DISK: No available disk

TDB_MESSED_MSG: TSDB messed message

TDB_IVLD_TAG_VAL: TSDB invalid tag value

TDB_NO_CACHE_LAST_ROW: TSDB no cache last row data

TDB_INCOMPLETE_DFILESET: TSDB incomplete DFileSet

QRY_INVALID_QHANDLE: Invalid handle

QRY_INVALID_MSG: Invalid message

QRY_NO_DISKSPACE: No diskspace for query

QRY_OUT_OF_MEMORY: System out of memory

QRY_APP_ERROR: Unexpected generic error in query

QRY_DUP_JOIN_KEY: Duplicated join key

QRY_EXCEED_TAGS_LIMIT: Tag condition too many

QRY_NOT_READY: Query not ready

QRY_HAS_RSP: Query should response

QRY_IN_EXEC: Multiple retrieval of this query

QRY_TOO_MANY_TIMEWINDOW: Too many time window in query

QRY_NOT_ENOUGH_BUFFER: Query buffer limit has reached

QRY_INCONSISTAN: File inconsistency in replica

QRY_SYS_ERROR: System error

QRY_INVALID_TIME_CONDITION: invalid time condition

QRY_INVALID_SCHEMA_VERSION: invalid schema version

Methods from Deref<Target = i32>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

The resulting type after dereferencing.

Dereferences the value.

Mutably dereferences the value.

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Formats the value using the given formatter.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Serialize this value into the given Serde serializer. Read more

Formats the value using the given formatter.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.