Rudiments
mvccrudinlines.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information
3
4#include <rudiments/charstring.h>
5
6inline
7bool mvccrud::doCreate(const char * const *columns,
8 const char * const *values) {
9 return doCreate(columns,values,NULL);
10}
11
12inline
13bool mvccrud::doUpdate(const char * const * columns,
14 const char * const *values,
15 const char *criteria) {
16 return doUpdate(columns,values,NULL,criteria);
17}
18
19inline
20const char *mvccrud::deriveDataType(const char *value) {
21 if (!value) {
22 return "u";
23 }
24 if (charstring::isInteger(value)) {
25 return "n";
26 }
27 return "s";
28}
Definition avltree.h:11
static bool isInteger(const char *val)
virtual const char * deriveDataType(const char *value)
Definition mvccrudinlines.h:20
virtual bool doCreate(const char *const *columns, const char *const *values, const char *const *types)=0
virtual bool doUpdate(const char *const *columns, const char *const *values, const char *const *types, const char *criteria)=0