43 enum Type { NoType, Integer, Text,
Varchar, Boolean, Date, Time, Tinyint, Double, Timestamp, Blob, LongBlob };
49 void setName ( QString myName );
50 bool isPrimaryKey()
const;
51 void setIsPrimaryKey (
bool status );
52 bool autoIncrement()
const;
53 void setAutoIncrement (
bool status );
55 void setNotNull (
bool status );
56 QVariant defaultValue()
const;
57 void setDefaultValue ( QVariant value );
60 unsigned int length()
const;
61 void setLength (
unsigned int len );
62 bool isUnsigned()
const;
63 void setIsUnsigned (
bool status );
64 bool isBinary()
const;
65 void setIsBinary (
bool status );
66 bool zeroFill()
const;
67 void setZeroFill (
bool status );
68 QString sqlFieldType()
const;
80 bool operator== (
const ESqlField &field)
const;
81 bool operator!= (
const ESqlField &field)
const;
Mostly the same as EWidget but for QObject as base class.
Definition: eobject.h:42
bool ai
Definition: esqlfield.h:86
bool fieldUnsigned
Definition: esqlfield.h:92
unsigned int fieldLength
Definition: esqlfield.h:90
#define E_CORE_EXPORT
Definition: eglobal.h:107
bool pk
Definition: esqlfield.h:85
Definition: esqlfield.h:43
bool nn
Definition: esqlfield.h:87
bool binary
Definition: esqlfield.h:91
QString fieldName
Definition: esqlfield.h:84
QVariant fieldDefValue
Definition: esqlfield.h:88
Represents an field in an sql table.This class is used with ESqlInit to define database schemas...
Definition: esqlfield.h:39
Definition: esqlfield.h:43
QMultiHash< int, QString > convFieldTypes
Definition: esqlfield.h:94
ESqlField::Type fieldType
Definition: esqlfield.h:89
DatabaseType
Choose the type of the used database.
Definition: eglobal.h:181
bool zf
Definition: esqlfield.h:93
Type
Definition: esqlfield.h:43