26 #ifndef __TERRALIB_SQLITE_INTERNAL_UTILS_H
27 #define __TERRALIB_SQLITE_INTERNAL_UTILS_H
30 #include "../dataaccess/Enums.h"
31 #include "../geometry/Enums.h"
69 bool Exists(
const std::map<std::string, std::string>& dbInfo);
77 std::streamsize
ReadLine(std::istream& istr,
char** pbuff, std::size_t& buffsize);
85 bool IsComplete(
char** sql,
size_t len, std::size_t& buffsize);
92 const std::string& colName,
93 const std::string& colType,
95 std::string* defaultValue = 0);
116 #endif // __TERRALIB_SQLITE_INTERNAL_UTILS_H
std::string GetRtreeFilter(const te::gm::Envelope *e, const te::gm::SpatialRelation r)
void Convert2SpatiaLiteGeom(const te::gm::GeomType t, std::string &geomType, std::string &dimension)
GeomType
Each enumerated type is compatible with a Well-known Binary (WKB) type code.
A class that models the description of a dataset.
FKActionType
Type of action performed on the foreign key data.
void GetHiddenTables(const te::da::DataSource *ds, std::vector< std::string > &tables)
SpatialRelation
Spatial relations between geometric objects.
std::string Convert2SQLCreate(const te::dt::Property *p)
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
te::da::DataSetType * Convert2TerraLib(sqlite3_stmt *pStmt)
It models a property definition.
bool IsCommandTerminator(const char *sqlLine)
bool IsComplete(char **sql, size_t len, std::size_t &buffsize)
An Envelope defines a 2D rectangular region.
bool IsAllWhitespace(const char *sqlLine)
std::string GetSQLType(const te::dt::Property *p)
void PerformCommands(sqlite3 *db, std::istream &istr)
std::string GetBindableSpatialRelation(const std::string &colName, const te::gm::SpatialRelation r)
A dataset is the unit of information manipulated by the data access module of TerraLib.
std::streamsize ReadLine(std::istream &istr, char **pbuff, std::size_t &buffsize)
void ExecuteScript(sqlite3 *db, const char *fileName)
struct sqlite3_stmt sqlite3_stmt
std::string GetSQLBindValues(const te::da::DataSet *dataset)
bool ContainsSemicolon(const char *sql, std::size_t nbytes)
bool Exists(const std::map< std::string, std::string > &dbInfo)
te::da::FKActionType GetAction(const std::string &action)
int Convert2TerraLibCategory(const std::string &category)
int GetConnectionFlags(const std::map< std::string, std::string > &connInfo)