props2sql.h File Reference

#include <dvutil/props.h>
#include <dvmysql/sqldb.h>
#include <dvmysql/object.h>
Include dependency graph for props2sql.h:

Go to the source code of this file.

Namespaces

namespace  Dv
 

Namespace shared by all locally produced packages.


namespace  Dv::Sql
 

Namespace for dbms-independent classes.


Functions

size_t Dv::Sql::props2object (Object &object, const Dv::Props &props) throw (std::runtime_error)
 Fill an object with data from a Dv::Util::Props object, where values from the latter are copied to the columns with the same name as the corresponding key (of the value).
size_t Dv::Sql::props_insert (Db &db, const std::string &table_name, const Dv::Props &props) throw (std::runtime_error)
 Insert a Dv::Util::Props object into a table, using the key's as column names and the values as column values.

dvmysql-1.0.3 [17 November, 2010]