blob method
void
blob(})
Add a blob column
Implementation
void blob(
String name, {
bool nullable = false,
bool unique = false,
Uint8List? defaultValue,
String? check,
}) {
var q = "$name BLOB";
if (unique) {
q += " UNIQUE";
}
if (!nullable) {
q += " NOT NULL";
}
if (defaultValue != null) {
q += " DEFAULT $defaultValue";
}
if (check != null) {
q += " CHECK($check)";
}
_columns.add(q);
_columnsData.add(DbColumn(
name: name,
unique: unique,
nullable: nullable,
defaultValue: "$defaultValue",
check: check,
type: DbColumnType.blob));
}