public SimpleDBLayerColumn( string nameIn, SimpleDBLayerColumnType typeIn, bool primaryKeyIn, bool autoIncIn, bool notNullIn, bool uniqueIn, SimpleDBLayerTableColumn foreignKeyIn ) { this.ColumnName = nameIn; this.ColumnType = typeIn; this.ColumnPrimaryKey = primaryKeyIn; this.ColumnAutoIncrement = autoIncIn; this.ColumnNotNull = notNullIn; this.ColumnUnique = uniqueIn; this.ColumnForeignKey = foreignKeyIn; }
public static string GetTypeString(SimpleDBLayerColumnType typeIn) { #if USE_SQLITE switch (typeIn) { case SimpleDBLayerColumnType.DOUBLE: return("DOUBLE"); case SimpleDBLayerColumnType.INTEGER: return("INTEGER"); case SimpleDBLayerColumnType.UNSIGNED_INTEGER: return("UNSIGNED BIG INT"); case SimpleDBLayerColumnType.VAR_255: return("VARCHAR(255)"); } #endif // USE_SQLITE return(""); }