Loading ndb/examples/Makefile +7 −2 Original line number Diff line number Diff line BIN_DIRS := ndbapi_example1 ndbapi_example3 ndbapi_example4 \ ndbapi_example5 ndbapi_scan_example BIN_DIRS := ndbapi_simple_example \ ndbapi_async_example \ ndbapi_async_example1 \ ndbapi_retries_example \ ndbapi_simple_index_example \ ndbapi_event_example \ ndbapi_scan_example bins: $(patsubst %, _bins_%, $(BIN_DIRS)) Loading ndb/examples/ndbapi_example3/Makefile→ndb/examples/ndbapi_async_example1/Makefile +3 −3 Original line number Diff line number Diff line TARGET = ndbapi_example3 SRCS = ndbapi_example3.cpp OBJS = ndbapi_example3.o TARGET = ndbapi_async1 SRCS = ndbapi_async1.cpp OBJS = ndbapi_async1.o CXX = g++ CFLAGS = -c -Wall -fno-rtti -fno-exceptions DEBUG = Loading ndb/examples/ndbapi_example2/ndbapi_example2.cpp→ndb/examples/ndbapi_async_example1/ndbapi_async1.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // // ndbapi_example2.cpp: Using asynchronous transactions in NDB API // ndbapi_async1.cpp: Using asynchronous transactions in NDB API // // Execute ndbapi_example1 to create the table "MYTABLENAME" // before executing this program. Loading ndb/examples/ndbapi_example5/Makefile→ndb/examples/ndbapi_event_example/Makefile +3 −3 Original line number Diff line number Diff line TARGET = ndbapi_example5 SRCS = ndbapi_example5.cpp OBJS = ndbapi_example5.o TARGET = ndbapi_event SRCS = ndbapi_event.cpp OBJS = ndbapi_event.o CXX = g++ CFLAGS = -c -Wall -fno-rtti -fno-exceptions CXXFLAGS = Loading ndb/examples/ndbapi_example5/ndbapi_example5.cpp→ndb/examples/ndbapi_event_example/ndbapi_event.cpp +32 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,38 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /** * ndbapi_example5.cpp: Using API level events in NDB API * ndbapi_event.cpp: Using API level events in NDB API * * Classes and methods used in this example: * * Ndb_cluster_connection * connect() * wait_until_ready() * * Ndb * init() * getDictionary() * createEventOperation() * dropEventOperation() * pollEvents() * * NdbDictionary * createEvent() * dropEvent() * * NdbDictionary::Event * setTable() * addtableEvent() * addEventColumn() * * NdbEventOperation * getValue() * getPreValue() * execute() * next() * isConsistent() * getEventType() * */ #include <NdbApi.hpp> Loading Loading
ndb/examples/Makefile +7 −2 Original line number Diff line number Diff line BIN_DIRS := ndbapi_example1 ndbapi_example3 ndbapi_example4 \ ndbapi_example5 ndbapi_scan_example BIN_DIRS := ndbapi_simple_example \ ndbapi_async_example \ ndbapi_async_example1 \ ndbapi_retries_example \ ndbapi_simple_index_example \ ndbapi_event_example \ ndbapi_scan_example bins: $(patsubst %, _bins_%, $(BIN_DIRS)) Loading
ndb/examples/ndbapi_example3/Makefile→ndb/examples/ndbapi_async_example1/Makefile +3 −3 Original line number Diff line number Diff line TARGET = ndbapi_example3 SRCS = ndbapi_example3.cpp OBJS = ndbapi_example3.o TARGET = ndbapi_async1 SRCS = ndbapi_async1.cpp OBJS = ndbapi_async1.o CXX = g++ CFLAGS = -c -Wall -fno-rtti -fno-exceptions DEBUG = Loading
ndb/examples/ndbapi_example2/ndbapi_example2.cpp→ndb/examples/ndbapi_async_example1/ndbapi_async1.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ // // ndbapi_example2.cpp: Using asynchronous transactions in NDB API // ndbapi_async1.cpp: Using asynchronous transactions in NDB API // // Execute ndbapi_example1 to create the table "MYTABLENAME" // before executing this program. Loading
ndb/examples/ndbapi_example5/Makefile→ndb/examples/ndbapi_event_example/Makefile +3 −3 Original line number Diff line number Diff line TARGET = ndbapi_example5 SRCS = ndbapi_example5.cpp OBJS = ndbapi_example5.o TARGET = ndbapi_event SRCS = ndbapi_event.cpp OBJS = ndbapi_event.o CXX = g++ CFLAGS = -c -Wall -fno-rtti -fno-exceptions CXXFLAGS = Loading
ndb/examples/ndbapi_example5/ndbapi_example5.cpp→ndb/examples/ndbapi_event_example/ndbapi_event.cpp +32 −1 Original line number Diff line number Diff line Loading @@ -15,7 +15,38 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /** * ndbapi_example5.cpp: Using API level events in NDB API * ndbapi_event.cpp: Using API level events in NDB API * * Classes and methods used in this example: * * Ndb_cluster_connection * connect() * wait_until_ready() * * Ndb * init() * getDictionary() * createEventOperation() * dropEventOperation() * pollEvents() * * NdbDictionary * createEvent() * dropEvent() * * NdbDictionary::Event * setTable() * addtableEvent() * addEventColumn() * * NdbEventOperation * getValue() * getPreValue() * execute() * next() * isConsistent() * getEventType() * */ #include <NdbApi.hpp> Loading