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
40b269f7
Commit
40b269f7
authored
Jan 08, 2005
by
jon@gigan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some cleanup in Ndb.hpp (testing for PDF generation).
parent
5c36000f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
ndb/include/ndbapi/Ndb.hpp
ndb/include/ndbapi/Ndb.hpp
+13
-12
No files found.
ndb/include/ndbapi/Ndb.hpp
View file @
40b269f7
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
on http://dev.mysql.com/doc/mysql/en/NDBCluster.html .
on http://dev.mysql.com/doc/mysql/en/NDBCluster.html .
Some of the fundamental ones are also described in section @ref secConcepts.
Some of the fundamental ones are also described in section @ref secConcepts.
The
<em>NDB API</em>
is a MySQL Cluster application interface
The
NDB API
is a MySQL Cluster application interface
that implements transactions.
that implements transactions.
The NDB API consists of the following fundamental classes:
The NDB API consists of the following fundamental classes:
- Ndb_cluster_connection, representing a connection to a cluster,
- Ndb_cluster_connection, representing a connection to a cluster,
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
- NdbDictionary represents meta information about tables and attributes.
- NdbDictionary represents meta information about tables and attributes.
- NdbError contains the specification for an error.
- NdbError contains the specification for an error.
It is also possible to receive "events"
on changed data in the database
.
It is also possible to receive "events"
triggered when data in the database in changed
.
This is done through the NdbEventOperation class.
This is done through the NdbEventOperation class.
There are also some auxiliary classes.
There are also some auxiliary classes.
...
@@ -44,31 +44,32 @@
...
@@ -44,31 +44,32 @@
The main structure of an application program is as follows:
The main structure of an application program is as follows:
-# Construct and connect to a cluster using the Ndb_cluster_connection
-# Construct and connect to a cluster using the Ndb_cluster_connection
object.
object.
-#
Construct and initialize Ndb object(s) to connect to a database
.
-#
initiate a database connection by constructing and initialising one or more Ndb objects
.
-# Define and execute transactions using
NdbTransaction
.
-# Define and execute transactions using
the NdbTransaction class
.
-# Delete Ndb objects.
-# Delete Ndb objects.
-#
Delete cluster connection
.
-#
Terminate the connection to the cluster (terminate instance of Ndb_cluster_connection)
.
The
main structure of a transaction
is as follows:
The
procedure for using transactions
is as follows:
-# Start transaction (
an NdbTransaction
)
-# Start transaction (
instantiate an NdbTransaction object
)
-# Add and define operations associated with the transaction using
-# Add and define operations associated with the transaction using
the
NdbOperation, NdbScanOperation, NdbIndexOperation,
NdbIndexScanOperation
NdbOperation, NdbScanOperation, NdbIndexOperation,
and NdbIndexScanOperation classes.
-# Execute transaction
-# Execute transaction
The execution can be of two different types,
The execution can be of two different types,
<var>Commit</var> or <var>NoCommit</var>.
<var>Commit</var> or <var>NoCommit</var>.
If the execution is of type <var>NoCommit</var>,
If the execution is of type <var>NoCommit</var>,
then the application program executes part of a transaction,
then the application program executes part of a transaction,
but without committing the transaction.
but without
actually
committing the transaction.
After executing a <var>NoCommit</var> transaction, the program can continue
After executing a <var>NoCommit</var> transaction, the program can continue
to add and define more operations to the transaction
to add and define more operations to the transaction
for later execution.
for later execution.
If the execute is of type <var>Commit</var>, then the transaction is
If the execute is of type <var>Commit</var>, then the transaction is
committed. The transaction <em>must</em> be closed after it has been
immediately
committed. The transaction <em>must</em> be closed after it has been
commited (event if commit fails), and no further addition or definition of
commited (event if commit fails), and no further addition or definition of
operations is allowed.
operations
for this transaction
is allowed.
@c STOP POINT -- js
@section secSync Synchronous Transactions
@section secSync Synchronous Transactions
...
...
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