mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
Added text to TableBuilder.
This commit is contained in:
parent
38b95e4ac8
commit
64a1352f97
@ -50,6 +50,10 @@ TableBuilder *TableBuilder::varchar(const String &name, const int length) {
|
||||
return this;
|
||||
}
|
||||
|
||||
TableBuilder *TableBuilder::text(const String &name) {
|
||||
return this;
|
||||
}
|
||||
|
||||
TableBuilder *TableBuilder::not_null() {
|
||||
return this;
|
||||
}
|
||||
|
@ -27,7 +27,10 @@ public:
|
||||
virtual TableBuilder *real_double(const String &name, const int size, const int d);
|
||||
|
||||
virtual TableBuilder *date(const String &name);
|
||||
|
||||
virtual TableBuilder *varchar(const String &name, const int length);
|
||||
virtual TableBuilder *text(const String &name);
|
||||
|
||||
virtual TableBuilder *not_null();
|
||||
virtual TableBuilder *null();
|
||||
virtual TableBuilder *defval(const String &val);
|
||||
|
@ -83,6 +83,12 @@ TableBuilder *SQLite3TableBuilder::varchar(const String &name, const int length)
|
||||
return this;
|
||||
}
|
||||
|
||||
TableBuilder *SQLite3TableBuilder::text(const String &name) {
|
||||
result += name + " TEXT ";
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
TableBuilder *SQLite3TableBuilder::not_null() {
|
||||
//result += "NOT NULL ";
|
||||
|
||||
|
@ -27,7 +27,10 @@ public:
|
||||
TableBuilder *real_double(const String &name, const int size, const int d);
|
||||
|
||||
TableBuilder *date(const String &name);
|
||||
|
||||
TableBuilder *varchar(const String &name, const int length);
|
||||
TableBuilder *text(const String &name);
|
||||
|
||||
TableBuilder *not_null();
|
||||
TableBuilder *null();
|
||||
TableBuilder *defval(const String &val);
|
||||
|
Loading…
Reference in New Issue
Block a user