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
605c7071
Commit
605c7071
authored
Jan 08, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.0-ndb
parents
66fe5d7c
1084e273
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
6 deletions
+21
-6
ndb/include/ndbapi/NdbDictionary.hpp
ndb/include/ndbapi/NdbDictionary.hpp
+19
-5
ndb/include/ndbapi/NdbEventOperation.hpp
ndb/include/ndbapi/NdbEventOperation.hpp
+2
-1
No files found.
ndb/include/ndbapi/NdbDictionary.hpp
View file @
605c7071
...
...
@@ -52,6 +52,7 @@ typedef struct charset_info_st CHARSET_INFO;
* -# Dropping secondary indexes (Dictionary::dropIndex)
*
* NdbDictionary has several help (inner) classes to support this:
* -# NdbDictionary::Dictionary the dictionary handling dictionary objects
* -# NdbDictionary::Table for creating tables
* -# NdbDictionary::Column for creating table columns
* -# NdbDictionary::Index for creating secondary indexes
...
...
@@ -909,6 +910,9 @@ public:
*/
class
Event
:
public
Object
{
public:
/**
* Specifies the type of database operations an Event listens to
*/
enum
TableEvent
{
TE_INSERT
=
1
,
///< Insert event on table
TE_DELETE
=
2
,
///< Delete event on table
...
...
@@ -916,6 +920,10 @@ public:
TE_ALL
=
7
///< Any/all event on table (not relevant when
///< events are received)
};
/**
* Specifies the durability of an event
* (future version may supply other types)
*/
enum
EventDurability
{
ED_UNDEFINED
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
...
...
@@ -930,8 +938,8 @@ public:
// All API's can use it,
// But's its removed when ndb is restarted
#endif
,
ED_PERMANENT
///< All API's can use it
,
///< It's still defined after a restart
,
ED_PERMANENT
///< All API's can use it
.
///< It's still defined after a
cluster system
restart
#ifndef DOXYGEN_SHOULD_SKIP_INTERNAL
=
3
#endif
...
...
@@ -950,9 +958,12 @@ public:
Event
(
const
char
*
name
,
const
NdbDictionary
::
Table
&
table
);
virtual
~
Event
();
/**
* Set
/get
unique identifier for the event
* Set unique identifier for the event
*/
void
setName
(
const
char
*
name
);
/**
* Get unique identifier for the event
*/
const
char
*
getName
()
const
;
/**
* Define table on which events should be detected
...
...
@@ -967,7 +978,7 @@ public:
/**
* Set table for which events should be detected
*
* @note preferred way is using setTable(const NdbDictionary::Table)
* @note preferred way is using setTable(const NdbDictionary::Table
&
)
* or constructor with table object parameter
*/
void
setTable
(
const
char
*
tableName
);
...
...
@@ -1224,9 +1235,12 @@ public:
#endif
/**
* Remove table
/index
from local cache
* Remove table from local cache
*/
void
removeCachedTable
(
const
char
*
table
);
/**
* Remove index from local cache
*/
void
removeCachedIndex
(
const
char
*
index
,
const
char
*
table
);
...
...
ndb/include/ndbapi/NdbEventOperation.hpp
View file @
605c7071
...
...
@@ -26,7 +26,8 @@ class NdbEventOperationImpl;
*
* Brief description on how to work with events:
*
* - An event i created in the Database through
* - An event, represented by an NdbDictionary::Event, i created in the
* Database through
* NdbDictionary::Dictionary::createEvent() (note that this can be done
* by any application or thread and not necessarily by the "listener")
* - To listen to events, an NdbEventOperation object is instantiated by
...
...
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