23 #include "ocilibcpp/types.hpp" 30 Acquire(
core::Check(
OCI_TypeInfoGet(connection, name.c_str(), type)),
static_cast<HandleFreeFunc
>(
nullptr),
nullptr, connection.GetHandle());
35 Acquire(pTypeInfo,
nullptr,
nullptr,
nullptr);
Encapsulate a Resultset column or object member properties.
A connection or session with a specific database.
static T Check(T result)
Internal usage. Checks if the last OCILIB function call has raised an error. If so, it raises a C++ exception using the retrieved error handle.
Column GetColumn(unsigned int index) const
Return the column from its index in the resultset.
Template Enumeration template class providing some type safety to some extends for manipulating enume...
core::Enum< TypeInfoTypeValues > TypeInfoType
Type of object information.
Connection GetConnection() const
Return the connection associated with a statement.
ostring GetName() const
Return the type info name.
Provides type information on Oracle Database objects.
struct OCI_TypeInfo OCI_TypeInfo
Type info metadata handle.
TypeInfoType GetType() const
Return the type of the given TypeInfo object.
unsigned int GetColumnCount() const
Return the number of columns contained in the type.
TypeInfo GetSuperType() const
Return the super type of the given type (e.g. parent type for a derived ORACLE UDT type) ...
TypeInfo(const Connection &connection, const ostring &name, TypeInfoType type)
Parametrized constructor.
std::basic_string< otext, std::char_traits< otext >, std::allocator< otext > > ostring
string class wrapping the OCILIB otext * type and OTEXT() macros ( see Character sets ) ...
boolean IsFinalType() const
Indicate if the given UDT type is final.