|
constexpr | ServiceContext () noexcept |
|
| ServiceContext (const OCI::Environment &environment, void *ocisvcctx, bool ownsHandle) |
| Constructs a new ServiceContext object.
|
|
| ServiceContext (const ServiceContext &other)=delete |
|
constexpr | ServiceContext (ServiceContext &&other) noexcept |
|
ServiceContext & | operator= (const ServiceContext &other)=delete |
|
constexpr ServiceContext & | operator= (ServiceContext &&other) noexcept |
|
constexpr void | swap (ServiceContext &other) noexcept |
|
constexpr const OCI::Environment & | Environment () const noexcept |
| Retrieves a reference to the Environment of the ServiceContext.
|
|
constexpr const OCI::Session & | Session () const noexcept |
| Retrieves a reference to the Session of the ServiceContext.
|
|
HO_EXPORT bool | SetSession (OCI::Session &&session) |
| Sets the session attribute of the ServiceContext.
|
|
const OCI::ErrorHandle & | Error () const noexcept final override |
| Retrieves a reference to the ErrorHandle object of the ServiceContext.
|
|
void | TransactionStart (TransactionStartFlags flags=TransactionStartFlags::None, UInt16 timeoutInSeconds=0) const |
| Sets the beginning of a transaction.
|
|
void | TransactionStart (TransactionStartFlags flags, const TimeSpan &timeout) const |
|
Transaction | BeginTransaction (TransactionStartFlags flags=TransactionStartFlags::None, UInt16 timeoutInSeconds=0) const |
|
void | TransactionRollback () const |
|
void | TransactionCommit (TransactionEndFlags flags=TransactionEndFlags::None) const |
|
void | TransactionDetach () const |
|
void | TransactionForget () const |
|
void | TransactionPrepare () const |
|
std::unique_ptr< OCI::Type > | TypeByName (const WideString &schemaName, const WideString &typeName, const WideString &versionName, OCI::Duration pinDuration, OCI::TypeGetOpt typeGetOption) const |
|
std::unique_ptr< OCI::Type > | TypeByName (const WideString &schemaName, const WideString &typeName, OCI::Duration pinDuration=OCI::Duration::Session, OCI::TypeGetOpt typeGetOption=OCI::TypeGetOpt::Header) const |
|
std::unique_ptr< OCI::Type > | TypeByFullName (const WideString &fullName, const WideString &versionName, OCI::Duration pinDuration, OCI::TypeGetOpt typeGetOption) const |
|
std::unique_ptr< OCI::Type > | TypeByFullName (const WideString &fullName, OCI::Duration pinDuration=OCI::Duration::Session, OCI::TypeGetOpt typeGetOption=OCI::TypeGetOpt::Header) const |
|
HO_EXPORT bool | Exists (const WideString &objectName, OCI::ParameterType parameterType=OCI::ParameterType::Unknown) const |
|
bool | Exists (const wchar_t *objectName, OCI::ParameterType parameterType=OCI::ParameterType::Unknown) const |
|
HO_EXPORT OCI::Describe | Describe (const WideString &objectName, OCI::ParameterType parameterType=OCI::ParameterType::Unknown, bool showInvisibleColumns=false) const |
|
HO_EXPORT OCI::Describe | Describe (const wchar_t *objectName, OCI::ParameterType parameterType=OCI::ParameterType::Unknown, bool showInvisibleColumns=false) const |
|
HO_EXPORT OCI::Describe | Describe (const OCI::Type &type) const |
|
HO_EXPORT OCI::Describe | Describe (const OCI::Ref &typeRef) const |
|
HO_EXPORT OCI::Describe | Describe (OCIType *type) const |
|
HO_EXPORT OCI::Describe | Describe (OCIRef *typeRef) const |
|
HO_EXPORT const OCI::Session & | CreateSession () |
|
HO_EXPORT const OCI::Session & | CreateSession (const wchar_t *username, size_t usernameLength, const wchar_t *password, size_t passwordLength) |
|
template<WideStringLike StringT1, WideStringLike StringT2> |
const OCI::Session & | CreateSession (const StringT1 &username, const StringT2 &password) |
|
const OCI::Server * | Server () const |
|
HO_EXPORT bool | SetServer (const OCI::Server *server) |
|
bool | SetServer (const OCI::Server &server) |
|
HO_EXPORT void | SessionBegin (CredidentialType credidentialType=CredidentialType::DatabaseServer, AuthenticationMode authenticationMode=AuthenticationMode::Default) const |
|
HO_EXPORT void | SessionEnd () const |
|
HO_EXPORT OCI::Statement | CreateStatement (const wchar_t *sql, size_t sqlLength) const |
|
template<WideStringLike StringT> |
OCI::Statement | CreateStatement (const StringT &sql) const |
|
OCI::Statement | CreateStatement (const wchar_t *sql) const |
|
template<WideStringLike StringT, typename ... BindableTypes>
requires (sizeof...( BindableTypes ) > 0) |
OCI::Statement | CreateStatement (const StringT &sql, BindableTypes &&...bindableArgs) const |
|
HO_EXPORT OCI::Describe | CreateDescribe () const |
|
HO_EXPORT std::vector< WideString > | GetDbmsOutput () const |
|
template<typename T , WideStringLike StringT> |
std::optional< T > | ExecuteScalar (const StringT &sql) const |
|
template<WideStringLike StringT, typename ... BindableTypes> |
Int64 | ExecuteNonQuery (const StringT &sql, BindableTypes &&...bindableArgs) const |
|
template<typename ... BindableTypes> |
Int64 | ExecuteNonQuery (const wchar_t *sql, BindableTypes &&...bindableArgs) const |
|
WideString | DbName () const |
|
Public Member Functions inherited from Harlinn::OCI::HandleBase |
constexpr void * | Handle () const noexcept |
| Provides access to the value of the handle object.
|
|
constexpr | operator bool () const noexcept |
| Test if the handle value is assigned.
|
|
constexpr bool | IsValid () const noexcept |
| Test if the handle value is assigned.
|
|
constexpr OCI::HandleType | HandleType () const noexcept |
| Returns a value identifying the type of the wrapped handle object.
|
|
|
Protected Member Functions inherited from Harlinn::OCI::HandleBase |
constexpr | HandleBase () noexcept |
| Default constructor.
|
|
constexpr | HandleBase (OCI::HandleType handleType, void *handle, bool ownsHandle) noexcept |
| Constructs a new HandleBase object.
|
|
| HandleBase (const HandleBase &other)=delete |
|
constexpr | HandleBase (HandleBase &&other) noexcept |
| Move constructor.
|
|
virtual | ~HandleBase () |
| Destructor.
|
|
constexpr void | SetHandle (void *newHandleValue, bool ownsHandle) noexcept |
| Assigns the handle value and ownership to this object.
|
|
constexpr bool | OwnsHandle () const noexcept |
| Returns true if this object is the owner of the handle value.
|
|
void * | DetachHandle () |
| If this object is the owner of a handle this function rescinds that ownership, and returns the handle value without closing the handle.
|
|
void | DestroyHandle () |
| Destroys the handle if it is owned by this object.
|
|
HandleBase & | operator= (const HandleBase &other)=delete |
|
constexpr HandleBase & | operator= (HandleBase &&other) noexcept |
|
constexpr void | swap (HandleBase &other) noexcept |
|
template<typename Derived > |
constexpr void | Take (Derived &&derived) noexcept |
| Template function used to implement move assignement in derived classes.
|
|
void | InitializeHandle (void *handle, bool ownsHandle) |
| Provides a "safe" mechanism for assigning a handle value. This functions throws if a handle value is already assigned to this object.
|
|
HO_EXPORT Int32 | GetAttribute (void *buffer, UInt32 *size, Attribute attribute) const |
| Gets the value of an attribute from the handle.
|
|
HO_EXPORT Int32 | SetAttribute (void *buffer, UInt32 size, Attribute attribute) const |
| Sets the value of an attribute on the handle.
|
|
DateTime | GetDateTimeAttribute (Attribute attribute) const |
| Gets the value of an attribute from the handle as a DateTime.
|
|
void | SetDateTimeAttribute (Attribute attribute, const DateTime &value) const |
| Sets the value of an attribute on the handle as a DateTime.
|
|
template<WideStringLike StringT = WideString> |
StringT | GetStringAttribute (Attribute attribute) const |
| Gets the value of an attribute from the handle as a WideString.
|
|
template<WideStringLike StringT = WideString> |
StringT | GetStringAttributeFromByteString (Attribute attribute) const |
| Gets the value of an attribute from the handle as a WideString For use with attributes that are not returned as UTF-16.
|
|
template<WideStringLike StringT> |
void | SetStringAttribute (Attribute attribute, const StringT &value) const |
| Sets the value of an attribute on the handle as a WideString.
|
|
void | SetStringAttribute (Attribute attribute, const wchar_t *value, size_t valueLength) const |
|
bool | GetBooleanAttribute (Attribute attribute) const |
| Gets the value of an attribute from the handle as a bool.
|
|
void | SetBooleanAttribute (Attribute attribute, bool value) const |
| Sets the value of an attribute on the handle as a bool.
|
|
Byte | GetByteAttribute (Attribute attribute) const |
| Gets the value of an attribute from the handle as a Byte.
|
|
void | SetByteAttribute (Attribute attribute, Byte value) const |
| Sets the value of an attribute on the handle as a Byte.
|
|
SByte | GetSByteAttribute (Attribute attribute) const |
| Gets the value of an attribute from the handle as a SByte.
|
|
void | SetSByteAttribute (Attribute attribute, SByte value) const |
| Sets the value of an attribute on the handle as a Byte.
|
|
Int16 | GetInt16Attribute (Attribute attribute) const |
| Gets the value of an attribute from the handle as an Int16.
|
|
void | SetInt16Attribute (Attribute attribute, Int16 value) const |
| Sets the value of an attribute on the handle as an Int16.
|
|
UInt16 | GetUInt16Attribute (Attribute attribute) const |
| Gets the value of an attribute from the handle as an UInt16.
|
|
void | SetUInt16Attribute (Attribute attribute, UInt16 value) const |
| Sets the value of an attribute on the handle as an UInt16.
|
|
Int32 | GetInt32Attribute (Attribute attribute) const |
| Gets the value of an attribute from the handle as an Int32.
|
|
void | SetInt32Attribute (Attribute attribute, Int32 value) const |
| Sets the value of an attribute on the handle as an Int32.
|
|
UInt32 | GetUInt32Attribute (Attribute attribute) const |
| Gets the value of an attribute from the handle as an UInt32.
|
|
void | SetUInt32Attribute (Attribute attribute, UInt32 value) const |
| Sets the value of an attribute on the handle as an UInt32.
|
|
Int64 | GetInt64Attribute (Attribute attribute) const |
| Gets the value of an attribute from the handle as an Int64.
|
|
void | SetInt64Attribute (Attribute attribute, Int64 value) const |
| Sets the value of an attribute on the handle as an Int64.
|
|
UInt64 | GetUInt64Attribute (Attribute attribute) const |
| Gets the value of an attribute from the handle as an UInt64.
|
|
void | SetUInt64Attribute (Attribute attribute, UInt64 value) const |
| Sets the value of an attribute on the handle as an UInt64.
|
|
void * | GetPointerAttribute (Attribute attribute) const |
| Gets the value of an attribute from the handle as a pointer.
|
|
void | SetPointerAttribute (Attribute attribute, void *value) const |
| Sets the value of an attribute on the handle as a pointer.
|
|
OCI::Number * | GetNumberAttribute (Attribute attribute) const |
| Gets the value of an attribute from the handle as a pointer to an OCI::Number.
|
|
Static Protected Member Functions inherited from Harlinn::OCI::HandleBase |
static HO_EXPORT void | HandleFree (void *handle, OCI::HandleType handleType) noexcept |
| Calls OCIHandleFree to release the handle.
|
|
ServiceContext - A service context handle defines attributes that determine the operational context for OCI calls to a server.