Documentation ¶
Index ¶
- Constants
- func BuildRawMeta(length uint32, metaType uint16, data unsafe.Pointer) unsafe.Pointer
- func FetchLengths(res unsafe.Pointer, count int) []int
- func FetchRawBlockCallback(p unsafe.Pointer, res *C.TAOS_RES, numOfRows C.int)
- func FetchRow(row unsafe.Pointer, offset int, colType uint8, length int, arg ...interface{}) driver.Value
- func FetchRowsCallback(p unsafe.Pointer, res *C.TAOS_RES, numOfRows C.int)
- func NotifyCallback(p unsafe.Pointer, ext unsafe.Pointer, notifyType C.int)
- func ParseJsonMeta(jsonMeta unsafe.Pointer) []byte
- func ParseRawMeta(rawMeta unsafe.Pointer) (length uint32, metaType uint16, data unsafe.Pointer)
- func PutTMQCommitCallbackResult(result *TMQCommitCallbackResult)
- func QueryCallback(p unsafe.Pointer, res *C.TAOS_RES, code C.int)
- func StmtParseFields(num int, fields unsafe.Pointer) []*stmt.StmtField
- func TMQAutoCommitCB(consumer unsafe.Pointer, resp C.int32_t, param unsafe.Pointer)
- func TMQCommitAsync(consumer unsafe.Pointer, message unsafe.Pointer, h cgo.Handle)
- func TMQCommitCB(consumer unsafe.Pointer, resp C.int32_t, param unsafe.Pointer)
- func TMQCommitOffsetAsync(consumer unsafe.Pointer, topic string, vGroupID int32, offset int64, ...)
- func TMQCommitOffsetCB(consumer unsafe.Pointer, resp C.int32_t, param unsafe.Pointer)
- func TMQCommitOffsetSync(consumer unsafe.Pointer, topic string, vGroupID int32, offset int64) int32
- func TMQCommitSync(consumer unsafe.Pointer, message unsafe.Pointer) int32
- func TMQCommitted(consumer unsafe.Pointer, topic string, vGroupID int32) int64
- func TMQConfDestroy(conf unsafe.Pointer)
- func TMQConfNew() unsafe.Pointer
- func TMQConfSet(conf unsafe.Pointer, key string, value string) int32
- func TMQConfSetAutoCommitCB(conf unsafe.Pointer, h cgo.Handle)
- func TMQConsumerClose(consumer unsafe.Pointer) int32
- func TMQConsumerNew(conf unsafe.Pointer) (unsafe.Pointer, error)
- func TMQConsumerPoll(consumer unsafe.Pointer, blockingTime int64) unsafe.Pointer
- func TMQErr2Str(code int32) string
- func TMQFreeAssignment(assignment unsafe.Pointer)
- func TMQFreeJsonMeta(jsonMeta unsafe.Pointer)
- func TMQFreeRaw(raw unsafe.Pointer)
- func TMQGetConnect(consumer unsafe.Pointer) unsafe.Pointer
- func TMQGetDBName(message unsafe.Pointer) string
- func TMQGetJsonMeta(message unsafe.Pointer) unsafe.Pointer
- func TMQGetRaw(message unsafe.Pointer) (int32, unsafe.Pointer)
- func TMQGetResType(message unsafe.Pointer) int32
- func TMQGetTableName(message unsafe.Pointer) string
- func TMQGetTopicAssignment(consumer unsafe.Pointer, topic string) (int32, []*tmq.Assignment)
- func TMQGetTopicName(message unsafe.Pointer) string
- func TMQGetVgroupID(message unsafe.Pointer) int32
- func TMQGetVgroupOffset(message unsafe.Pointer) int64
- func TMQListAppend(list unsafe.Pointer, str string) int32
- func TMQListDestroy(list unsafe.Pointer)
- func TMQListGetSize(list unsafe.Pointer) int32
- func TMQListNew() unsafe.Pointer
- func TMQListToCArray(list unsafe.Pointer, size int) []string
- func TMQOffsetSeek(consumer unsafe.Pointer, topic string, vGroupID int32, offset int64) int32
- func TMQPosition(consumer unsafe.Pointer, topic string, vGroupID int32) int64
- func TMQSubscribe(consumer unsafe.Pointer, topicList unsafe.Pointer) int32
- func TMQSubscription(consumer unsafe.Pointer) (int32, unsafe.Pointer)
- func TMQUnsubscribe(consumer unsafe.Pointer) int32
- func TMQWriteRaw(conn unsafe.Pointer, raw unsafe.Pointer) int32
- func TaosAffectedRows(result unsafe.Pointer) int
- func TaosClose(taosConnect unsafe.Pointer)
- func TaosConnect(host, user, pass, db string, port int) (taos unsafe.Pointer, err error)
- func TaosError(result unsafe.Pointer) int
- func TaosErrorStr(result unsafe.Pointer) string
- func TaosFetchBlock(result unsafe.Pointer) (int, unsafe.Pointer)
- func TaosFetchFields(result unsafe.Pointer) unsafe.Pointer
- func TaosFetchLengths(res unsafe.Pointer) unsafe.Pointer
- func TaosFetchRawBlock(result unsafe.Pointer) (int, int, unsafe.Pointer)
- func TaosFetchRawBlockA(res unsafe.Pointer, caller cgo.Handle)
- func TaosFetchRow(result unsafe.Pointer) unsafe.Pointer
- func TaosFetchRowsA(res unsafe.Pointer, caller cgo.Handle)
- func TaosFetchWhitelistA(taosConnect unsafe.Pointer, caller cgo.Handle)
- func TaosFieldCount(result unsafe.Pointer) int
- func TaosFreeResult(res unsafe.Pointer)
- func TaosGetClientInfo() string
- func TaosGetCurrentDB(conn unsafe.Pointer) (db string, err error)
- func TaosGetRawBlock(result unsafe.Pointer) unsafe.Pointer
- func TaosGetServerInfo(conn unsafe.Pointer) string
- func TaosGetTableVgID(conn unsafe.Pointer, db, table string) (vgID int, code int)
- func TaosGetTablesVgID(conn unsafe.Pointer, db string, tables []string) (vgIDs []int, code int)
- func TaosIsUpdateQuery(res unsafe.Pointer) bool
- func TaosLoadTableInfo(taosConnect unsafe.Pointer, tableNameList []string) int
- func TaosNumFields(result unsafe.Pointer) int
- func TaosOptions(option int, value string) int
- func TaosQuery(taosConnect unsafe.Pointer, sql string) unsafe.Pointer
- func TaosQueryA(taosConnect unsafe.Pointer, sql string, caller cgo.Handle)
- func TaosQueryAWithReqID(taosConn unsafe.Pointer, sql string, caller cgo.Handle, reqID int64)
- func TaosQueryWithReqID(taosConn unsafe.Pointer, sql string, reqID int64) unsafe.Pointer
- func TaosResetCurrentDB(taosConnect unsafe.Pointer)
- func TaosResultPrecision(result unsafe.Pointer) int
- func TaosSchemalessInsert(taosConnect unsafe.Pointer, lines []string, protocol int, precision string) unsafe.Pointer
- func TaosSchemalessInsertRaw(taosConnect unsafe.Pointer, lines string, protocol int, precision string) (int32, unsafe.Pointer)
- func TaosSchemalessInsertRawTTL(taosConnect unsafe.Pointer, lines string, protocol int, precision string, ...) (int32, unsafe.Pointer)
- func TaosSchemalessInsertRawTTLWithReqID(taosConnect unsafe.Pointer, lines string, protocol int, precision string, ...) (int32, unsafe.Pointer)
- func TaosSchemalessInsertRawWithReqID(taosConnect unsafe.Pointer, lines string, protocol int, precision string, ...) (int32, unsafe.Pointer)
- func TaosSchemalessInsertTTL(taosConnect unsafe.Pointer, lines []string, protocol int, precision string, ...) unsafe.Pointer
- func TaosSchemalessInsertTTLWithReqID(taosConnect unsafe.Pointer, lines []string, protocol int, precision string, ...) unsafe.Pointer
- func TaosSchemalessInsertWithReqID(taosConnect unsafe.Pointer, lines []string, protocol int, precision string, ...) unsafe.Pointer
- func TaosSelectDB(taosConnect unsafe.Pointer, db string) int
- func TaosSetConfig(params map[string]string) error
- func TaosSetConnMode(conn unsafe.Pointer, mode int, value int) int
- func TaosSetNotifyCB(taosConnect unsafe.Pointer, caller cgo.Handle, notifyType int) int32
- func TaosStmtAddBatch(stmt unsafe.Pointer) int
- func TaosStmtAffectedRows(stmt unsafe.Pointer) int
- func TaosStmtAffectedRowsOnce(stmt unsafe.Pointer) int
- func TaosStmtBindParam(stmt unsafe.Pointer, params []driver.Value) int
- func TaosStmtBindParamBatch(stmt unsafe.Pointer, multiBind [][]driver.Value, ...) int
- func TaosStmtClose(stmt unsafe.Pointer) int
- func TaosStmtErrStr(stmt unsafe.Pointer) string
- func TaosStmtExecute(stmt unsafe.Pointer) int
- func TaosStmtGetColFields(stmt unsafe.Pointer) (code, num int, fields unsafe.Pointer)
- func TaosStmtGetParam(stmt unsafe.Pointer, idx int) (dataType int, dataLength int, err error)
- func TaosStmtGetTagFields(stmt unsafe.Pointer) (code, num int, fields unsafe.Pointer)
- func TaosStmtInit(taosConnect unsafe.Pointer) unsafe.Pointer
- func TaosStmtInitWithReqID(taosConn unsafe.Pointer, reqID int64) unsafe.Pointer
- func TaosStmtIsInsert(stmt unsafe.Pointer) (is bool, errorCode int)
- func TaosStmtNumParams(stmt unsafe.Pointer) (count int, errorCode int)
- func TaosStmtPrepare(stmt unsafe.Pointer, sql string) int
- func TaosStmtReclaimFields(stmt unsafe.Pointer, fields unsafe.Pointer)
- func TaosStmtSetSubTBName(stmt unsafe.Pointer, name string) int
- func TaosStmtSetTBName(stmt unsafe.Pointer, name string) int
- func TaosStmtSetTBNameTags(stmt unsafe.Pointer, name string, tags []driver.Value) int
- func TaosStmtSetTags(stmt unsafe.Pointer, tags []driver.Value) int
- func TaosStmtUseResult(stmt unsafe.Pointer) unsafe.Pointer
- func TaosValidateSql(taosConnect unsafe.Pointer, sql string) int
- func TaosWriteRawBlock(conn unsafe.Pointer, numOfRows int, pData unsafe.Pointer, tableName string) int
- func TaosWriteRawBlockWithFields(conn unsafe.Pointer, numOfRows int, pData unsafe.Pointer, tableName string, ...) int
- func TaosWriteRawBlockWithFieldsWithReqID(conn unsafe.Pointer, numOfRows int, pData unsafe.Pointer, tableName string, ...) int
- func TaosWriteRawBlockWithReqID(conn unsafe.Pointer, numOfRows int, pData unsafe.Pointer, tableName string, ...) int
- func WhitelistCallback(param unsafe.Pointer, code int, taosConnect unsafe.Pointer, ...)
- type Caller
- type FormatTimeFunc
- type RowsHeader
- type TMQCommitCallbackResult
- type WhitelistResult
Constants ¶
const ( InfluxDBLineProtocol = 1 OpenTSDBTelnetLineProtocol = 2 OpenTSDBJsonFormatProtocol = 3 )
const ( TSDB_SML_TIMESTAMP_NOT_CONFIGURED = iota TSDB_SML_TIMESTAMP_HOURS TSDB_SML_TIMESTAMP_MINUTES TSDB_SML_TIMESTAMP_SECONDS TSDB_SML_TIMESTAMP_MILLI_SECONDS TSDB_SML_TIMESTAMP_MICRO_SECONDS TSDB_SML_TIMESTAMP_NANO_SECONDS )
const (
PointerSize = unsafe.Sizeof(uintptr(1))
)
Variables ¶
This section is empty.
Functions ¶
func BuildRawMeta ¶
func FetchRawBlockCallback ¶
func ParseJsonMeta ¶
func ParseRawMeta ¶
func PutTMQCommitCallbackResult ¶
func PutTMQCommitCallbackResult(result *TMQCommitCallbackResult)
func TMQAutoCommitCB ¶
func TMQCommitAsync ¶
TMQCommitAsync DLL_EXPORT void tmq_commit_async(tmq_t *tmq, const TAOS_RES *msg, tmq_commit_cb *cb, void *param);
func TMQCommitOffsetAsync ¶
func TMQCommitOffsetAsync(consumer unsafe.Pointer, topic string, vGroupID int32, offset int64, h cgo.Handle)
TMQCommitOffsetAsync DLL_EXPORT void tmq_commit_offset_async(tmq_t *tmq, const char *pTopicName, int32_t vgId, int64_t offset, tmq_commit_cb *cb, void *param);
func TMQCommitOffsetCB ¶
func TMQCommitOffsetSync ¶
TMQCommitOffsetSync DLL_EXPORT int32_t tmq_commit_offset_sync(tmq_t *tmq, const char *pTopicName, int32_t vgId, int64_t offset);
func TMQCommitSync ¶
TMQCommitSync DLL_EXPORT int32_t tmq_commit_sync(tmq_t *tmq, const TAOS_RES *msg);
func TMQCommitted ¶
TMQCommitted DLL_EXPORT int64_t tmq_committed(tmq_t *tmq, const char *pTopicName, int32_t vgId);
func TMQConfDestroy ¶
TMQConfDestroy void tmq_conf_destroy(tmq_conf_t *conf);
func TMQConfSet ¶
TMQConfSet tmq_conf_res_t tmq_conf_set(tmq_conf_t *conf, const char *key, const char *value);
func TMQConfSetAutoCommitCB ¶
TMQConfSetAutoCommitCB DLL_EXPORT void tmq_conf_set_auto_commit_cb(tmq_conf_t *conf, tmq_commit_cb *cb, void *param);
func TMQConsumerClose ¶
TMQConsumerClose tmq_resp_err_t tmq_consumer_close(tmq_t *tmq);
func TMQConsumerNew ¶
TMQConsumerNew tmq_t *tmq_consumer_new1(tmq_conf_t *conf, char *errstr, int32_t errstrLen);
func TMQConsumerPoll ¶
TMQConsumerPoll TAOS_RES *tmq_consumer_poll(tmq_t *tmq, int64_t blocking_time);
func TMQFreeAssignment ¶
TMQFreeAssignment DLL_EXPORT void tmq_free_assignment(tmq_topic_assignment* pAssignment);
func TMQFreeJsonMeta ¶
TMQFreeJsonMeta DLL_EXPORT void tmq_free_json_meta(char* jsonMeta);
func TMQFreeRaw ¶
TMQFreeRaw DLL_EXPORT void tmq_free_raw(tmq_raw_data raw);
func TMQGetConnect ¶
TMQGetConnect TAOS *tmq_get_connect(tmq_t *tmq)
func TMQGetDBName ¶
TMQGetDBName const char *tmq_get_db_name(TAOS_RES *res);
func TMQGetJsonMeta ¶
TMQGetJsonMeta DLL_EXPORT char *tmq_get_json_meta(TAOS_RES *res); // Returning null means error. Returned result need to be freed by tmq_free_json_meta
func TMQGetResType ¶
TMQGetResType DLL_EXPORT tmq_res_t tmq_get_res_type(TAOS_RES *res);
func TMQGetTableName ¶
TMQGetTableName DLL_EXPORT const char *tmq_get_table_name(TAOS_RES *res);
func TMQGetTopicAssignment ¶
TMQGetTopicAssignment DLL_EXPORT int32_t tmq_get_topic_assignment(tmq_t *tmq, const char* pTopicName, tmq_topic_assignment **assignment, int32_t *numOfAssignment)
func TMQGetTopicName ¶
TMQGetTopicName char *tmq_get_topic_name(tmq_message_t *message);
func TMQGetVgroupID ¶
TMQGetVgroupID int32_t tmq_get_vgroup_id(tmq_message_t *message);
func TMQGetVgroupOffset ¶
TMQGetVgroupOffset DLL_EXPORT int64_t tmq_get_vgroup_offset(TAOS_RES* res, int32_t vgroupId);
func TMQListAppend ¶
TMQListAppend int32_t tmq_list_append(tmq_list_t *, const char *);
func TMQListDestroy ¶
TMQListDestroy void tmq_list_destroy(tmq_list_t *);
func TMQListGetSize ¶
TMQListGetSize int32_t tmq_list_get_size(const tmq_list_t *);
func TMQListToCArray ¶
TMQListToCArray char **tmq_list_to_c_array(const tmq_list_t *);
func TMQOffsetSeek ¶
TMQOffsetSeek DLL_EXPORT int32_t tmq_offset_seek(tmq_t* tmq, const char* pTopicName, int32_t vgroupHandle, int64_t offset);
func TMQPosition ¶
TMQPosition DLL_EXPORT int64_t tmq_position(tmq_t *tmq, const char *pTopicName, int32_t vgId);
func TMQSubscribe ¶
TMQSubscribe tmq_resp_err_t tmq_subscribe(tmq_t *tmq, tmq_list_t *topic_list);
func TMQSubscription ¶
TMQSubscription tmq_resp_err_t tmq_subscription(tmq_t *tmq, tmq_list_t **topics);
func TMQUnsubscribe ¶
TMQUnsubscribe tmq_resp_err_t tmq_unsubscribe(tmq_t *tmq);
func TMQWriteRaw ¶
TMQWriteRaw DLL_EXPORT int32_t tmq_write_raw(TAOS *taos, tmq_raw_data raw);
func TaosAffectedRows ¶
TaosAffectedRows int taos_affected_rows(TAOS_RES *res);
func TaosConnect ¶
TaosConnect TAOS *taos_connect(const char *ip, const char *user, const char *pass, const char *db, uint16_t port);
func TaosErrorStr ¶
TaosErrorStr char *taos_errstr(TAOS_RES *tres);
func TaosFetchBlock ¶
TaosFetchBlock int taos_fetch_block(TAOS_RES *res, TAOS_ROW *rows);
func TaosFetchFields ¶
TaosFetchFields TAOS_FIELD *taos_fetch_fields(TAOS_RES *res);
func TaosFetchLengths ¶
TaosFetchLengths int* taos_fetch_lengths(TAOS_RES *res);
func TaosFetchRawBlock ¶
TaosFetchRawBlock int taos_fetch_raw_block(TAOS_RES *res, int* numOfRows, void** pData);
func TaosFetchRawBlockA ¶
TaosFetchRawBlockA void taos_fetch_raw_block_a(TAOS_RES* res, __taos_async_fn_t fp, void* param);
func TaosFetchRow ¶
TaosFetchRow TAOS_ROW taos_fetch_row(TAOS_RES *res);
func TaosFetchRowsA ¶
TaosFetchRowsA void taos_fetch_rows_a(TAOS_RES *res, void (*fp)(void *param, TAOS_RES *, int numOfRows), void *param);
func TaosFetchWhitelistA ¶
TaosFetchWhitelistA DLL_EXPORT void taos_fetch_whitelist_a(TAOS *taos, __taos_async_whitelist_fn_t fp, void *param);
func TaosFieldCount ¶
TaosFieldCount int taos_field_count(TAOS_RES *res);
func TaosFreeResult ¶
TaosFreeResult void taos_free_result(TAOS_RES *res);
func TaosGetClientInfo ¶
func TaosGetClientInfo() string
TaosGetClientInfo const char *taos_get_client_info();
func TaosGetCurrentDB ¶
TaosGetCurrentDB DLL_EXPORT int taos_get_current_db(TAOS *taos, char *database, int len, int *required)
func TaosGetRawBlock ¶
TaosGetRawBlock const void *taos_get_raw_block(TAOS_RES* res);
func TaosGetServerInfo ¶
TaosGetServerInfo DLL_EXPORT const char *taos_get_server_info(TAOS *taos)
func TaosGetTableVgID ¶
TaosGetTableVgID DLL_EXPORT int taos_get_table_vgId(TAOS *taos, const char *db, const char *table, int *vgId)
func TaosGetTablesVgID ¶
TaosGetTablesVgID DLL_EXPORT int taos_get_tables_vgId(TAOS *taos, const char *db, const char *table[], int tableNum, int *vgId)
func TaosIsUpdateQuery ¶
TaosIsUpdateQuery bool taos_is_update_query(TAOS_RES *res);
func TaosLoadTableInfo ¶
TaosLoadTableInfo taos_load_table_info(TAOS *taos, const char* tableNameList);
func TaosNumFields ¶
TaosNumFields int taos_num_fields(TAOS_RES *res);
func TaosOptions ¶
TaosOptions int taos_options(TSDB_OPTION option, const void *arg, ...);
func TaosQueryA ¶
TaosQueryA void taos_query_a(TAOS *taos, const char *sql, void (*fp)(void *param, TAOS_RES *, int code), void *param);
func TaosQueryAWithReqID ¶
TaosQueryAWithReqID void taos_query_a_with_reqid(TAOS *taos, const char *sql, __taos_async_fn_t fp, void *param, int64_t reqid);
func TaosQueryWithReqID ¶
TaosQueryWithReqID TAOS_RES *taos_query_with_reqid(TAOS *taos, const char *sql, int64_t reqID);
func TaosResetCurrentDB ¶
TaosResetCurrentDB void taos_reset_current_db(TAOS *taos);
func TaosResultPrecision ¶
TaosResultPrecision int taos_result_precision(TAOS_RES *res);
func TaosSchemalessInsert ¶
func TaosSchemalessInsert(taosConnect unsafe.Pointer, lines []string, protocol int, precision string) unsafe.Pointer
TaosSchemalessInsert TAOS_RES *taos_schemaless_insert(TAOS* taos, char* lines[], int numLines, int protocol, int precision); Deprecated
func TaosSchemalessInsertRaw ¶
func TaosSchemalessInsertRaw(taosConnect unsafe.Pointer, lines string, protocol int, precision string) (int32, unsafe.Pointer)
TaosSchemalessInsertRaw TAOS_RES *taos_schemaless_insert_raw(TAOS* taos, char* lines, int len, int32_t *totalRows, int protocol, int precision);
func TaosSchemalessInsertRawTTL ¶
func TaosSchemalessInsertRawTTL(taosConnect unsafe.Pointer, lines string, protocol int, precision string, ttl int) (int32, unsafe.Pointer)
TaosSchemalessInsertRawTTL TAOS_RES *taos_schemaless_insert_raw_ttl(TAOS *taos, char *lines, int len, int32_t *totalRows, int protocol, int precision, int32_t ttl);
func TaosSchemalessInsertRawTTLWithReqID ¶
func TaosSchemalessInsertRawTTLWithReqID(taosConnect unsafe.Pointer, lines string, protocol int, precision string, ttl int, reqID int64) (int32, unsafe.Pointer)
TaosSchemalessInsertRawTTLWithReqID TAOS_RES *taos_schemaless_insert_raw_ttl_with_reqid(TAOS *taos, char *lines, int len, int32_t *totalRows, int protocol, int precision, int32_t ttl, int64_t reqid)
func TaosSchemalessInsertRawWithReqID ¶
func TaosSchemalessInsertRawWithReqID(taosConnect unsafe.Pointer, lines string, protocol int, precision string, reqID int64) (int32, unsafe.Pointer)
TaosSchemalessInsertRawWithReqID TAOS_RES *taos_schemaless_insert_raw_with_reqid(TAOS *taos, char *lines, int len, int32_t *totalRows, int protocol, int precision, int64_t reqid);
func TaosSchemalessInsertTTL ¶
func TaosSchemalessInsertTTL(taosConnect unsafe.Pointer, lines []string, protocol int, precision string, ttl int) unsafe.Pointer
TaosSchemalessInsertTTL TAOS_RES *taos_schemaless_insert_ttl(TAOS *taos, char *lines[], int numLines, int protocol, int precision, int32_t ttl) Deprecated
func TaosSchemalessInsertTTLWithReqID ¶
func TaosSchemalessInsertTTLWithReqID(taosConnect unsafe.Pointer, lines []string, protocol int, precision string, ttl int, reqID int64) unsafe.Pointer
TaosSchemalessInsertTTLWithReqID TAOS_RES *taos_schemaless_insert_ttl_with_reqid(TAOS *taos, char *lines[], int numLines, int protocol, int precision, int32_t ttl, int64_t reqid) Deprecated
func TaosSchemalessInsertWithReqID ¶
func TaosSchemalessInsertWithReqID(taosConnect unsafe.Pointer, lines []string, protocol int, precision string, reqID int64) unsafe.Pointer
TaosSchemalessInsertWithReqID TAOS_RES *taos_schemaless_insert_with_reqid(TAOS *taos, char *lines[], int numLines, int protocol, int precision, int64_t reqid); Deprecated
func TaosSelectDB ¶
TaosSelectDB int taos_select_db(TAOS *taos, const char *db);
func TaosSetConfig ¶
TaosSetConfig int taos_set_config(const char *config);
func TaosSetNotifyCB ¶
func TaosStmtAddBatch ¶
TaosStmtAddBatch int taos_stmt_add_batch(TAOS_STMT *stmt);
func TaosStmtAffectedRows ¶
TaosStmtAffectedRows int taos_stmt_affected_rows(TAOS_STMT *stmt);
func TaosStmtAffectedRowsOnce ¶
TaosStmtAffectedRowsOnce int taos_stmt_affected_rows_once(TAOS_STMT *stmt);
func TaosStmtBindParam ¶
TaosStmtBindParam int taos_stmt_bind_param(TAOS_STMT *stmt, TAOS_MULTI_BIND *bind);
func TaosStmtBindParamBatch ¶
func TaosStmtBindParamBatch(stmt unsafe.Pointer, multiBind [][]driver.Value, bindType []*taosTypes.ColumnType) int
TaosStmtBindParamBatch int taos_stmt_bind_param_batch(TAOS_STMT* stmt, TAOS_MULTI_BIND* bind);
func TaosStmtClose ¶
TaosStmtClose int taos_stmt_close(TAOS_STMT *stmt);
func TaosStmtErrStr ¶
TaosStmtErrStr char *taos_stmt_errstr(TAOS_STMT *stmt);
func TaosStmtExecute ¶
TaosStmtExecute int taos_stmt_execute(TAOS_STMT *stmt);
func TaosStmtGetColFields ¶
TaosStmtGetColFields DLL_EXPORT int taos_stmt_get_col_fields(TAOS_STMT *stmt, int* fieldNum, TAOS_FIELD_E** fields);
func TaosStmtGetParam ¶
TaosStmtGetParam DLL_EXPORT int taos_stmt_get_param(TAOS_STMT *stmt, int idx, int *type, int *bytes)
func TaosStmtGetTagFields ¶
TaosStmtGetTagFields DLL_EXPORT int taos_stmt_get_tag_fields(TAOS_STMT *stmt, int* fieldNum, TAOS_FIELD_E** fields);
func TaosStmtInit ¶
TaosStmtInit TAOS_STMT *taos_stmt_init(TAOS *taos);
func TaosStmtInitWithReqID ¶
TaosStmtInitWithReqID TAOS_STMT *taos_stmt_init_with_reqid(TAOS *taos, int64_t reqid);
func TaosStmtIsInsert ¶
TaosStmtIsInsert int taos_stmt_is_insert(TAOS_STMT *stmt, int *insert);
func TaosStmtNumParams ¶
TaosStmtNumParams int taos_stmt_num_params(TAOS_STMT *stmt, int *nums);
func TaosStmtPrepare ¶
TaosStmtPrepare int taos_stmt_prepare(TAOS_STMT *stmt, const char *sql, unsigned long length);
func TaosStmtReclaimFields ¶
TaosStmtReclaimFields DLL_EXPORT void taos_stmt_reclaim_fields(TAOS_STMT *stmt, TAOS_FIELD_E *fields);
func TaosStmtSetSubTBName ¶
TaosStmtSetSubTBName int taos_stmt_set_sub_tbname(TAOS_STMT* stmt, const char* name);
func TaosStmtSetTBName ¶
TaosStmtSetTBName int taos_stmt_set_tbname(TAOS_STMT* stmt, const char* name);
func TaosStmtSetTBNameTags ¶
TaosStmtSetTBNameTags int taos_stmt_set_tbname_tags(TAOS_STMT* stmt, const char* name, TAOS_MULTI_BIND* tags);
func TaosStmtSetTags ¶
TaosStmtSetTags int taos_stmt_set_tags(TAOS_STMT *stmt, TAOS_MULTI_BIND *tags);
func TaosStmtUseResult ¶
TaosStmtUseResult TAOS_RES * taos_stmt_use_result(TAOS_STMT *stmt);
func TaosValidateSql ¶
TaosValidateSql int taos_validate_sql(TAOS *taos, const char *sql);
func TaosWriteRawBlock ¶
func TaosWriteRawBlock(conn unsafe.Pointer, numOfRows int, pData unsafe.Pointer, tableName string) int
TaosWriteRawBlock DLL_EXPORT int taos_write_raw_block(TAOS *taos, int numOfRows, char *pData, const char* tbname);
func TaosWriteRawBlockWithFields ¶
func TaosWriteRawBlockWithFields(conn unsafe.Pointer, numOfRows int, pData unsafe.Pointer, tableName string, fields unsafe.Pointer, numFields int) int
TaosWriteRawBlockWithFields DLL_EXPORT int taos_write_raw_block_with_fields(TAOS* taos, int rows, char* pData, const char* tbname, TAOS_FIELD *fields, int numFields);
func TaosWriteRawBlockWithFieldsWithReqID ¶
func TaosWriteRawBlockWithFieldsWithReqID(conn unsafe.Pointer, numOfRows int, pData unsafe.Pointer, tableName string, fields unsafe.Pointer, numFields int, reqID int64) int
DLL_EXPORT int taos_write_raw_block_with_fields_with_reqid(TAOS *taos, int rows, char *pData, const char *tbname,TAOS_FIELD *fields, int numFields, int64_t reqid);
Types ¶
type RowsHeader ¶
func ReadColumn ¶
func ReadColumn(result unsafe.Pointer, count int) (*RowsHeader, error)
func (*RowsHeader) TypeDatabaseName ¶
func (rh *RowsHeader) TypeDatabaseName(i int) string
type TMQCommitCallbackResult ¶
func GetTMQCommitCallbackResult ¶
func GetTMQCommitCallbackResult(errCode int32, consumer unsafe.Pointer) *TMQCommitCallbackResult
func (*TMQCommitCallbackResult) GetError ¶
func (t *TMQCommitCallbackResult) GetError() error