Harlinn.Windows 0.1
|
#include <HCCEse.h>
Public Member Functions | |
constexpr | Session () noexcept |
Session (JET_INSTANCE instance, JET_SESID sessionId) | |
~Session () | |
Session (const Session &other)=delete | |
Session (Session &&other) noexcept | |
Session & | operator= (const Session &other)=delete |
Session & | operator= (Session &&other) noexcept |
JET_SESID | Handle () const |
constexpr bool | IsValid () const noexcept |
Checks that the session is valid. | |
constexpr | operator bool () const noexcept |
bool | SetContext (JET_API_PTR context) const |
void | ResetContext () const |
TimeSpan | QuerySnapshotTimeout () const |
void | SetSnapshotTimeout (const TimeSpan &value) |
void | End () |
Transaction | StartTransaction () const |
void | BeginTransaction () const |
void | CommitTransaction (TransactionFlags flags=TransactionFlags::None) const |
void | Rollback (bool all=false) const |
template<DatabaseType T = Database, SimpleWideStringLike StringT> | |
T | CreateDatabase (const StringT &filename, CreateDatabaseFlags flags, unsigned long maxDatabaseSizeInNumberOfPages=0) const |
Creates and attaches a database file to be used with the database engine with a maximum database size specified. | |
template<DatabaseType T = Database, SimpleAnsiStringLike StringT> | |
T | CreateDatabase (const StringT &filename, CreateDatabaseFlags flags, unsigned long maxDatabaseSizeInNumberOfPages=0) const |
Creates and attaches a database file to be used with the database engine with a maximum database size specified. | |
template<SimpleWideStringLike StringT> | |
void | AttachDatabase (const StringT &filename, AttachDatabaseFlags flags=AttachDatabaseFlags::None, unsigned long maxDatabaseSizeInNumberOfPages=0) const |
Attaches a database file for use with a database instance and specifies a maximum size for that database. In order to use the database, it will need to be subsequently opened with OpenDatabase. | |
template<SimpleAnsiStringLike StringT> | |
void | AttachDatabase (const StringT &filename, AttachDatabaseFlags flags=AttachDatabaseFlags::None, unsigned long maxDatabaseSizeInNumberOfPages=0) const |
Attaches a database file for use with a database instance and specifies a maximum size for that database. In order to use the database, it will need to be subsequently opened with OpenDatabase. | |
template<SimpleWideStringLike StringT> | |
void | DetachDatabase (const StringT &filename, DetachDatabaseFlags flags) const |
template<SimpleWideStringLike StringT> | |
bool | DetachDatabaseNX (const StringT &filename, DetachDatabaseFlags flags) const |
template<SimpleAnsiStringLike StringT> | |
void | DetachDatabase (const StringT &filename, DetachDatabaseFlags flags) const |
template<SimpleAnsiStringLike StringT> | |
bool | DetachDatabaseNX (const StringT &filename, DetachDatabaseFlags flags) const |
void | DetachAll (DetachDatabaseFlags flags=DetachDatabaseFlags::None) const |
template<DatabaseType T = Database, SimpleWideStringLike StringT> | |
T | OpenDatabase (const StringT &filename, OpenDatabaseFlags flags=OpenDatabaseFlags::None) const |
Opens a previously attached database. | |
template<DatabaseType T = Database, SimpleAnsiStringLike StringT> | |
T | OpenDatabase (const StringT &filename, OpenDatabaseFlags flags=OpenDatabaseFlags::None) const |
Session | Clone () const |
Private Member Functions | |
unsigned long long | GetSystemNumericParameter (unsigned long paramId) const |
void | GetSystemStringParameter (unsigned long paramId, JET_PWSTR szParam, unsigned long cbMax) const |
template<WideStringLike StringT> | |
StringT | GetSystemStringParameter (unsigned long paramId) const |
template<AnsiStringLike StringT> | |
StringT | GetSystemStringParameter (unsigned long paramId) const |
void | SetSystemParameter (unsigned long paramId, unsigned long long value) |
template<SimpleWideStringLike StringT> | |
void | SetSystemParameter (unsigned long paramId, const StringT &value) |
template<SimpleAnsiStringLike StringT> | |
void | SetSystemParameter (unsigned long paramId, const StringT &value) |
Private Attributes | |
JET_INSTANCE | instance_ |
JET_SESID | sessionId_ |
|
inlineconstexprnoexcept |
|
inlineexplicit |
|
inline |
|
delete |
|
inlinenoexcept |
|
inline |
Attaches a database file for use with a database instance and specifies a maximum size for that database. In order to use the database, it will need to be subsequently opened with OpenDatabase.
filename | The name of the database to attach |
flags | Options to be used for this call |
maxDatabaseSizeInNumberOfPages | The maximum size, in database pages, for database. The default, 0, means that there is no maximum enforced by the database engine |
|
inline |
Attaches a database file for use with a database instance and specifies a maximum size for that database. In order to use the database, it will need to be subsequently opened with OpenDatabase.
filename | The name of the database to attach |
flags | Options to be used for this call |
maxDatabaseSizeInNumberOfPages | The maximum size, in database pages, for database. The default, 0, means that there is no maximum enforced by the database engine |
|
inline |
|
inline |
|
inline |
|
inlinenodiscard |
Creates and attaches a database file to be used with the database engine with a maximum database size specified.
T |
filename | The name of the database to be created |
flags | Flags control how the database is created and attached to the engine. |
maxDatabaseSizeInNumberOfPages | The maximum size, in database pages, for the database. |
|
inlinenodiscard |
Creates and attaches a database file to be used with the database engine with a maximum database size specified.
T |
filename | The name of the database to be created |
flags | Flags control how the database is created and attached to the engine. |
maxDatabaseSizeInNumberOfPages | The maximum size, in database pages, for the database. |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inlineconstexprnoexcept |
Checks that the session is valid.
|
inlinenodiscard |
|
inlinenodiscard |
|
inlineexplicitconstexprnoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inlinenodiscard |
|
private |
|
private |