COOPY » Guide  version 0.6.5
Public Types | Public Member Functions | Data Fields
coopy::store::ColumnType Class Reference

General column type (text, integer, etc). More...

#include <ColumnInfo.h>

Public Types

enum  {
  COLUMN_FAMILY_NONE, COLUMN_FAMILY_INTEGER, COLUMN_FAMILY_REAL, COLUMN_FAMILY_TEXT,
  COLUMN_FAMILY_DATETIME, COLUMN_FAMILY_BOOLEAN, COLUMN_FAMILY_CURRENCY, COLUMN_FAMILY_BLOB,
  COLUMN_SOURCE_NONE, COLUMN_SOURCE_SQLITE, COLUMN_SOURCE_MYSQL, COLUMN_SOURCE_EXCEL,
  COLUMN_SOURCE_CSV, COLUMN_SOURCE_ACCESS
}

Public Member Functions

 ColumnType ()
 ColumnType (const std::string &name)
void reset ()
bool setType (const std::string &name, const std::string &lang="unknown")
std::string asSqlite (bool addPrimaryKey) const

Data Fields

std::string src_name
std::string src_lang
bool allowNull
int family
int src
int size
int size2
bool primaryKey
bool primaryKeySet
bool autoIncrement
bool autoIncrementSet
std::string foreignTable
std::string foreignKey
bool foreignKeySet

Detailed Description

General column type (text, integer, etc).

Definition at line 17 of file ColumnInfo.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
COLUMN_FAMILY_NONE 
COLUMN_FAMILY_INTEGER 
COLUMN_FAMILY_REAL 
COLUMN_FAMILY_TEXT 
COLUMN_FAMILY_DATETIME 
COLUMN_FAMILY_BOOLEAN 
COLUMN_FAMILY_CURRENCY 
COLUMN_FAMILY_BLOB 
COLUMN_SOURCE_NONE 
COLUMN_SOURCE_SQLITE 
COLUMN_SOURCE_MYSQL 
COLUMN_SOURCE_EXCEL 
COLUMN_SOURCE_CSV 
COLUMN_SOURCE_ACCESS 

Definition at line 19 of file ColumnInfo.h.


Constructor & Destructor Documentation

coopy::store::ColumnType::ColumnType ( ) [inline]

Definition at line 53 of file ColumnInfo.h.

References reset().

coopy::store::ColumnType::ColumnType ( const std::string &  name) [inline]

Definition at line 57 of file ColumnInfo.h.

References setType().


Member Function Documentation

std::string ColumnType::asSqlite ( bool  addPrimaryKey) const
void coopy::store::ColumnType::reset ( ) [inline]
bool ColumnType::setType ( const std::string &  name,
const std::string &  lang = "unknown" 
)

Field Documentation

Definition at line 40 of file ColumnInfo.h.

Referenced by asSqlite(), cellToJson(), reset(), and setType().

Definition at line 42 of file ColumnInfo.h.

Referenced by reset(), and coopy::store::SchemaSniffer::sniff().

Definition at line 43 of file ColumnInfo.h.

Referenced by reset().

Definition at line 41 of file ColumnInfo.h.

Referenced by reset().

Definition at line 38 of file ColumnInfo.h.

Referenced by reset(), and setType().

Definition at line 37 of file ColumnInfo.h.

Referenced by coopy::store::sqlite::SqliteSheet::create(), reset(), and setType().


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines