te::sqlite Namespace Reference

Classes

class  BatchExecutor
 
class  DataSource
 
class  DataSourceCatalogLoader
 
class  DataSourceTransactor
 
class  EWKBSize
 
class  FwDataSet
 
class  Module
 
class  PreparedQuery
 A class that implements a prepared query for the TerraLib SQLite Data Access Driver. More...
 
class  SQLVisitor
 A visitor for building an SQL statement using SQLite dialect. More...
 

Functions

void BindValue (sqlite3_stmt *stmt, te::da::DataSet *d, std::size_t i, std::size_t propertyPos)
 
te::da::DataSourceBuild ()
 
bool ContainsSemicolon (const char *sql, std::size_t nbytes)
 
void Convert2SpatiaLiteGeom (const te::gm::GeomType t, std::string &geomType, std::string &dimension)
 
std::string Convert2SQLCreate (const te::dt::Property *p)
 
te::da::DataSetTypeConvert2TerraLib (sqlite3_stmt *pStmt)
 
te::dt::PropertyConvert2TerraLib (int colId, const std::string &colName, const std::string &colType, bool required, std::string *defaultValue=0)
 
int Convert2TerraLibCategory (const std::string &category)
 
void ExecuteScript (sqlite3 *db, const char *fileName)
 
bool Exists (const std::map< std::string, std::string > &dbInfo)
 
te::da::FKActionType GetAction (const std::string &action)
 
std::string GetBindableSpatialRelation (const std::string &colName, const te::gm::SpatialRelation r)
 
int GetConnectionFlags (const std::map< std::string, std::string > &connInfo)
 
void GetHiddenTables (const te::da::DataSource *ds, std::vector< std::string > &tables)
 
std::string GetRtreeFilter (const te::gm::Envelope *e, const te::gm::SpatialRelation r)
 
std::string GetSQLBindValues (const te::da::DataSet *dataset)
 
std::string GetSQLType (const te::dt::Property *p)
 
bool IsAllWhitespace (const char *sqlLine)
 
bool IsCommandTerminator (const char *sqlLine)
 
bool IsComplete (char **sql, size_t len, std::size_t &buffsize)
 
void PerformCommands (sqlite3 *db, std::istream &istr)
 
void PerformCommands (sqlite3 *db, const char *sql)
 
std::streamsize ReadLine (std::istream &istr, char **pbuff, std::size_t &buffsize)
 

Function Documentation

te::da::DataSource* te::sqlite::Build ( )
inline

Definition at line 36 of file DataSourceFactory.h.

Referenced by te::sqlite::Module::startup().

bool te::sqlite::ContainsSemicolon ( const char *  sql,
std::size_t  nbytes 
)

Definition at line 359 of file Utils.cpp.

Referenced by PerformCommands().

te::dt::Property * te::sqlite::Convert2TerraLib ( int  colId,
const std::string &  colName,
const std::string &  colType,
bool  required,
std::string *  defaultValue = 0 
)
int te::sqlite::Convert2TerraLibCategory ( const std::string &  category)
void te::sqlite::ExecuteScript ( sqlite3 db,
const char *  fileName 
)

Definition at line 139 of file Utils.cpp.

References PerformCommands().

Referenced by te::sqlite::BatchExecutor::execute().

bool te::sqlite::Exists ( const std::map< std::string, std::string > &  dbInfo)

Definition at line 101 of file Utils.cpp.

References GetConnectionFlags().

Referenced by te::sqlite::DataSource::create(), and te::sqlite::DataSource::drop().

te::da::FKActionType te::sqlite::GetAction ( const std::string &  action)
std::string te::sqlite::GetBindableSpatialRelation ( const std::string &  colName,
const te::gm::SpatialRelation  r 
)
int te::sqlite::GetConnectionFlags ( const std::map< std::string, std::string > &  connInfo)

Definition at line 63 of file Utils.cpp.

Referenced by Exists(), and te::sqlite::DataSource::open().

void te::sqlite::GetHiddenTables ( const te::da::DataSource ds,
std::vector< std::string > &  tables 
)
std::string te::sqlite::GetSQLBindValues ( const te::da::DataSet dataset)

Definition at line 874 of file Utils.cpp.

References te::da::DataSet::getNumProperties().

Referenced by te::sqlite::DataSourceTransactor::add().

bool te::sqlite::IsAllWhitespace ( const char *  sqlLine)

Definition at line 304 of file Utils.cpp.

Referenced by IsCommandTerminator(), and PerformCommands().

bool te::sqlite::IsCommandTerminator ( const char *  sqlLine)

Definition at line 345 of file Utils.cpp.

References IsAllWhitespace().

Referenced by PerformCommands().

bool te::sqlite::IsComplete ( char **  sql,
size_t  len,
std::size_t &  buffsize 
)

Definition at line 368 of file Utils.cpp.

References TE_SQLITE_BUFFER_SCRIPT_SIZE.

Referenced by PerformCommands().

void te::sqlite::PerformCommands ( sqlite3 db,
std::istream &  istr 
)
void te::sqlite::PerformCommands ( sqlite3 db,
const char *  sql 
)

Definition at line 232 of file Utils.cpp.

std::streamsize te::sqlite::ReadLine ( std::istream &  istr,
char **  pbuff,
std::size_t &  buffsize 
)

Definition at line 277 of file Utils.cpp.

References TE_SQLITE_BUFFER_SCRIPT_SIZE.

Referenced by PerformCommands().