Commit 584f68e8 authored by unknown's avatar unknown
Browse files

changed example names

and updated some docs

parent fcdd5e43
Loading
Loading
Loading
Loading
+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))

+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 = 
+1 −1
Original line number Diff line number Diff line
@@ -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.
+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 = 
+32 −1
Original line number Diff line number Diff line
@@ -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