C Driver API 3.0.0
API for the NuoDB C Driver Library
Loading...
Searching...
No Matches
resultSetMetaData.h
Go to the documentation of this file.
1/* (C) Copyright 2015-2023 Dassault Systemes SE. All Rights Reserved. */
2
3#ifndef _NUODB_RESULTSETMETADATA_H_
4#define _NUODB_RESULTSETMETADATA_H_ 1
5
6#ifndef _NUODB_UTILS_H_
7#include "nuodb/utils.h"
8#endif
9
10#ifndef _NUODB_STRUCTS_H_
11#include "nuodb/structs.h"
12#endif
13
14#ifndef _NUODB_ERROR_H_
15#include "nuodb/error.h"
16#endif
17
18/* c-driver */
19#ifdef __cplusplus
20extern "C" {
21#endif
22
58
61
69{
71 _NuoDB_ResultSetMetaData_state_t* _state;
72
81 const char* (* getSchemaName)(NuoDB_ResultSetMetaData* _this, int index);
82
91 const char* (* getTableName)(NuoDB_ResultSetMetaData* _this, int index);
92
101 const char* (* getColumnName)(NuoDB_ResultSetMetaData* _this, int index);
102
117 const char* (* getColumnLabel)(NuoDB_ResultSetMetaData* _this, int index);
118
130 int (* getScale)(NuoDB_ResultSetMetaData* _this, int index);
131
140 int (* getPrecision)(NuoDB_ResultSetMetaData* _this, int index);
141
153
167
176 const char* (* getColumnTypeName)(NuoDB_ResultSetMetaData* _this, int index);
177
186
196
207
218
228
240};
241
242#ifdef __cplusplus
243} /* extern "C" { */
244#endif
245
246#endif /* end of: #ifndef _NUODB_RESULTSETMETADATA_H_ */
NuoDB Error information.
enum NuoDB_Status_enum NuoDB_Status
Status codes used by the C Driver.
Definition error.h:130
enum NuoDB_Type_enum NuoDB_Type
Constant SQL types used by the C-Language API.
Definition resultSetMetaData.h:60
NuoDB_Type_enum
NuoDB_Type enum.
Definition resultSetMetaData.h:35
@ NUODB_TYPE_NULL
Represents SQL value NULL (0)
Definition resultSetMetaData.h:36
@ NUODB_TYPE_BOOLEAN
Type code representing the SQL type BOOLEAN (16)
Definition resultSetMetaData.h:54
@ NUODB_TYPE_LONGVARBINARY
Type code representing the SQL type LONGVARBINARY (-4)
Definition resultSetMetaData.h:56
@ NUODB_TYPE_BIT
Type code representing the SQL type BIT (-7)
Definition resultSetMetaData.h:37
@ NUODB_TYPE_BIGINT
Type code representing the SQL type BIGINT (-5)
Definition resultSetMetaData.h:41
@ NUODB_TYPE_TINYINT
Type code representing the SQL type BYTE (-6)
Definition resultSetMetaData.h:38
@ NUODB_TYPE_INTEGER
Type code representing the SQL type INTEGER (4)
Definition resultSetMetaData.h:40
@ NUODB_TYPE_LONGVARCHAR
Type code representing the SQL type LONGVARCHAR (-1)
Definition resultSetMetaData.h:46
@ NUODB_TYPE_CHAR
Type code representing the SQL type CHAR (1)
Definition resultSetMetaData.h:44
@ NUODB_TYPE_TIME
Type code representing the SQL type TIME (92)
Definition resultSetMetaData.h:48
@ NUODB_TYPE_DOUBLE
Type code representing the SQL type DOUBLE (8)
Definition resultSetMetaData.h:43
@ NUODB_TYPE_VARCHAR
Type code representing the SQL type VARCHAR (12)
Definition resultSetMetaData.h:45
@ NUODB_TYPE_DECIMAL
Type code representing the SQL type DECIMAL (3)
Definition resultSetMetaData.h:53
@ NUODB_TYPE_SMALLINT
Type code representing the SQL type SMALLINT (5)
Definition resultSetMetaData.h:39
@ NUODB_TYPE_FLOAT
Type code representing the SQL type FLOAT (6)
Definition resultSetMetaData.h:42
@ NUODB_TYPE_TIMESTAMP
Type code representing the SQL type TIMESTAMP (93)
Definition resultSetMetaData.h:49
@ NUODB_TYPE_BINARY
Type code representing the SQL type BINARY (-2)
Definition resultSetMetaData.h:55
@ NUODB_TYPE_CLOB
Type code representing the SQL type CLOB (2005)
Definition resultSetMetaData.h:51
@ NUODB_TYPE_BLOB
Type code representing the SQL type BLOB (2004)
Definition resultSetMetaData.h:50
@ NUODB_TYPE_NUMERIC
Type code representing the SQL type NUMERIC (2)
Definition resultSetMetaData.h:52
@ NUODB_TYPE_DATE
Type code representing the SQL type DATE (91)
Definition resultSetMetaData.h:47
Data structure used to obtain metadata for a NuoDB_ResultSet.
Definition resultSetMetaData.h:69
int(* getPrecision)(NuoDB_ResultSetMetaData *_this, int index)
Get the designated column's specified column size.
Definition resultSetMetaData.h:140
nuodb_bool_t(* isReadOnly)(NuoDB_ResultSetMetaData *_this, int index)
Indicates whether the designated column is definitely not writable.
Definition resultSetMetaData.h:217
int(* getScale)(NuoDB_ResultSetMetaData *_this, int index)
Get the designated column's number of digits to the right of the decimal point.
Definition resultSetMetaData.h:130
nuodb_bool_t(* isAutoIncrement)(NuoDB_ResultSetMetaData *_this, int index)
Indicates whether the designated column is auto increment.
Definition resultSetMetaData.h:195
nuodb_bool_t(* isNullable)(NuoDB_ResultSetMetaData *_this, int index)
Indicates the nullability of values in the designated column.
Definition resultSetMetaData.h:227
nuodb_bool_t(* isWritable)(NuoDB_ResultSetMetaData *_this, int index)
Indicates whether it is possible for a write on the designated column to succeed.
Definition resultSetMetaData.h:206
int(* getColumnDisplaySize)(NuoDB_ResultSetMetaData *_this, int index)
Indicates the designated column's normal maximum width in characters.
Definition resultSetMetaData.h:152
NuoDB_Status(* getColumnType)(NuoDB_ResultSetMetaData *_this, int index, NuoDB_Type *columnType)
Retrieves the designated colunmn's SQL type.
Definition resultSetMetaData.h:166
int(* getCurrentColumnMaxLength)(NuoDB_ResultSetMetaData *_this, int index)
Gets the maximum column width which would be the larger of the length of the value stored in the desi...
Definition resultSetMetaData.h:239
int(* getColumnCount)(NuoDB_ResultSetMetaData *_this)
returns the number of columns in this ResultSet data structure
Definition resultSetMetaData.h:185
structs and typedefs.
NuoDB utilities.
unsigned char nuodb_bool_t
NuoDB boolean type.
Definition utils.h:49