Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a4843c63
Commit
a4843c63
authored
19 years ago
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0
parents
bb806c1e
cf031388
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
247 additions
and
243 deletions
+247
-243
ndb/include/ndbapi/Ndb.hpp
ndb/include/ndbapi/Ndb.hpp
+208
-222
ndb/include/ndbapi/NdbConnection.hpp
ndb/include/ndbapi/NdbConnection.hpp
+23
-11
ndb/include/ndbapi/NdbDictionary.hpp
ndb/include/ndbapi/NdbDictionary.hpp
+2
-7
ndb/include/ndbapi/NdbEventOperation.hpp
ndb/include/ndbapi/NdbEventOperation.hpp
+14
-3
No files found.
ndb/include/ndbapi/Ndb.hpp
View file @
a4843c63
This diff is collapsed.
Click to expand it.
ndb/include/ndbapi/NdbConnection.hpp
View file @
a4843c63
...
@@ -31,6 +31,8 @@ class Ndb;
...
@@ -31,6 +31,8 @@ class Ndb;
class
NdbBlob
;
class
NdbBlob
;
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
// to be documented later
/**
/**
* NdbAsynchCallback functions are used when executing asynchronous
* NdbAsynchCallback functions are used when executing asynchronous
* transactions (using NdbConnection::executeAsynchPrepare, or
* transactions (using NdbConnection::executeAsynchPrepare, or
...
@@ -39,6 +41,7 @@ class NdbBlob;
...
@@ -39,6 +41,7 @@ class NdbBlob;
* See @ref secAsync for more information.
* See @ref secAsync for more information.
*/
*/
typedef
void
(
*
NdbAsynchCallback
)(
int
,
NdbConnection
*
,
void
*
);
typedef
void
(
*
NdbAsynchCallback
)(
int
,
NdbConnection
*
,
void
*
);
#endif
/**
/**
* Commit type of transaction
* Commit type of transaction
...
@@ -184,7 +187,8 @@ public:
...
@@ -184,7 +187,8 @@ public:
* @note All operations within the same transaction need to
* @note All operations within the same transaction need to
* be initialized with this method.
* be initialized with this method.
*
*
* @param aTable A table object (fetched by NdbDictionary::Dictionary::getTable)
* @param aTable
* A table object (fetched by NdbDictionary::Dictionary::getTable)
* @return Pointer to an NdbOperation object if successful, otherwise NULL.
* @return Pointer to an NdbOperation object if successful, otherwise NULL.
*/
*/
NdbOperation
*
getNdbOperation
(
const
NdbDictionary
::
Table
*
aTable
);
NdbOperation
*
getNdbOperation
(
const
NdbDictionary
::
Table
*
aTable
);
...
@@ -204,7 +208,8 @@ public:
...
@@ -204,7 +208,8 @@ public:
* get the NdbConnection object which
* get the NdbConnection object which
* was fetched by startTransaction pointing to this operation.
* was fetched by startTransaction pointing to this operation.
*
*
* @param aTable A table object (fetched by NdbDictionary::Dictionary::getTable)
* @param aTable
* A table object (fetched by NdbDictionary::Dictionary::getTable)
* @return pointer to an NdbOperation object if successful, otherwise NULL
* @return pointer to an NdbOperation object if successful, otherwise NULL
*/
*/
NdbScanOperation
*
getNdbScanOperation
(
const
NdbDictionary
::
Table
*
aTable
);
NdbScanOperation
*
getNdbScanOperation
(
const
NdbDictionary
::
Table
*
aTable
);
...
@@ -226,11 +231,14 @@ public:
...
@@ -226,11 +231,14 @@ public:
* get the NdbConnection object which
* get the NdbConnection object which
* was fetched by startTransaction pointing to this operation.
* was fetched by startTransaction pointing to this operation.
*
*
* @param anIndex An index object (fetched by NdbDictionary::Dictionary::getIndex).
* @param anIndex
* @param aTable A table object (fetched by NdbDictionary::Dictionary::getTable).
An index object (fetched by NdbDictionary::Dictionary::getIndex).
* @param aTable
A table object (fetched by NdbDictionary::Dictionary::getTable).
* @return pointer to an NdbOperation object if successful, otherwise NULL
* @return pointer to an NdbOperation object if successful, otherwise NULL
*/
*/
NdbIndexScanOperation
*
getNdbIndexScanOperation
(
const
NdbDictionary
::
Index
*
anIndex
,
NdbIndexScanOperation
*
getNdbIndexScanOperation
(
const
NdbDictionary
::
Index
*
anIndex
,
const
NdbDictionary
::
Table
*
aTable
);
const
NdbDictionary
::
Table
*
aTable
);
/**
/**
...
@@ -251,8 +259,10 @@ public:
...
@@ -251,8 +259,10 @@ public:
* get the NdbConnection object that
* get the NdbConnection object that
* was fetched by startTransaction pointing to this operation.
* was fetched by startTransaction pointing to this operation.
*
*
* @param anIndex An index object (fetched by NdbDictionary::Dictionary::getIndex).
* @param anIndex
* @param aTable A table object (fetched by NdbDictionary::Dictionary::getTable).
* An index object (fetched by NdbDictionary::Dictionary::getIndex).
* @param aTable
* A table object (fetched by NdbDictionary::Dictionary::getTable).
* @return Pointer to an NdbIndexOperation object if
* @return Pointer to an NdbIndexOperation object if
* successful, otherwise NULL
* successful, otherwise NULL
*/
*/
...
@@ -289,6 +299,8 @@ public:
...
@@ -289,6 +299,8 @@ public:
AbortOption
abortOption
=
AbortOnError
,
AbortOption
abortOption
=
AbortOnError
,
int
force
=
0
);
int
force
=
0
);
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
// to be documented later
/**
/**
* Prepare an asynchronous transaction.
* Prepare an asynchronous transaction.
*
*
...
@@ -334,7 +346,7 @@ public:
...
@@ -334,7 +346,7 @@ public:
NdbAsynchCallback
aCallback
,
NdbAsynchCallback
aCallback
,
void
*
anyObject
,
void
*
anyObject
,
AbortOption
abortOption
=
AbortOnError
);
AbortOption
abortOption
=
AbortOnError
);
#endif
/**
/**
* Refresh
* Refresh
* Update timeout counter of this transaction
* Update timeout counter of this transaction
...
...
This diff is collapsed.
Click to expand it.
ndb/include/ndbapi/NdbDictionary.hpp
View file @
a4843c63
...
@@ -166,7 +166,7 @@ public:
...
@@ -166,7 +166,7 @@ public:
* The builtin column types
* The builtin column types
*/
*/
enum
Type
{
enum
Type
{
Undefined
=
0
,
///< Undefined
Undefined
=
0
,
///< Undefined
Tinyint
,
///< 8 bit. 1 byte signed integer, can be used in array
Tinyint
,
///< 8 bit. 1 byte signed integer, can be used in array
Tinyunsigned
,
///< 8 bit. 1 byte unsigned integer, can be used in array
Tinyunsigned
,
///< 8 bit. 1 byte unsigned integer, can be used in array
Smallint
,
///< 16 bit. 2 byte signed integer, can be used in array
Smallint
,
///< 16 bit. 2 byte signed integer, can be used in array
...
@@ -374,16 +374,11 @@ public:
...
@@ -374,16 +374,11 @@ public:
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
const
Table
*
getBlobTable
()
const
;
const
Table
*
getBlobTable
()
const
;
/**
* @name ODBC Specific methods
* @{
*/
void
setAutoIncrement
(
bool
);
void
setAutoIncrement
(
bool
);
bool
getAutoIncrement
()
const
;
bool
getAutoIncrement
()
const
;
void
setAutoIncrementInitialValue
(
Uint64
val
);
void
setAutoIncrementInitialValue
(
Uint64
val
);
void
setDefaultValue
(
const
char
*
);
void
setDefaultValue
(
const
char
*
);
const
char
*
getDefaultValue
()
const
;
const
char
*
getDefaultValue
()
const
;
/** @} *******************************************************************/
static
const
Column
*
FRAGMENT
;
static
const
Column
*
FRAGMENT
;
static
const
Column
*
ROW_COUNT
;
static
const
Column
*
ROW_COUNT
;
...
...
This diff is collapsed.
Click to expand it.
ndb/include/ndbapi/NdbEventOperation.hpp
View file @
a4843c63
...
@@ -64,7 +64,7 @@ class NdbEventOperationImpl;
...
@@ -64,7 +64,7 @@ class NdbEventOperationImpl;
*
*
* Known issues:
* Known issues:
*
*
* When several NdbEventOperation
s are tied to the same event in the same
* When several NdbEventOperation
'
s are tied to the same event in the same
* process they will share the circular buffer. The BufferLength will then
* process they will share the circular buffer. The BufferLength will then
* be the same for all and decided by the first NdbEventOperation
* be the same for all and decided by the first NdbEventOperation
* instantiation. Just make sure to instantiate the "largest" one first.
* instantiation. Just make sure to instantiate the "largest" one first.
...
@@ -84,7 +84,7 @@ class NdbEventOperationImpl;
...
@@ -84,7 +84,7 @@ class NdbEventOperationImpl;
* replica. If a node fails events will not be received twice anymore
* replica. If a node fails events will not be received twice anymore
* for data in corresponding fragment. Will be optimized in later versions.
* for data in corresponding fragment. Will be optimized in later versions.
*
*
* If a node
faili
ure has occured not all events will be recieved
* If a node
fail
ure has occured not all events will be recieved
* anymore. Drop NdbEventOperation and Create again after nodes are up
* anymore. Drop NdbEventOperation and Create again after nodes are up
* again. Will be fixed in later versions.
* again. Will be fixed in later versions.
*
*
...
@@ -97,7 +97,7 @@ class NdbEventOperationImpl;
...
@@ -97,7 +97,7 @@ class NdbEventOperationImpl;
*
*
* Useful API programs:
* Useful API programs:
*
*
* select_all -d sys 'NDB$EVENTS_0'
*
ndb_
select_all -d sys 'NDB$EVENTS_0'
* Will show contents in the system table containing created events.
* Will show contents in the system table containing created events.
*
*
*/
*/
...
@@ -187,8 +187,19 @@ public:
...
@@ -187,8 +187,19 @@ public:
*/
*/
NdbDictionary
::
Event
::
TableEvent
getEventType
();
NdbDictionary
::
Event
::
TableEvent
getEventType
();
/**
*
*/
Uint32
getGCI
();
Uint32
getGCI
();
/**
*
*/
Uint32
getLatestGCI
();
Uint32
getLatestGCI
();
/*
*
*/
void
print
();
void
print
();
private:
private:
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment