mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-22 11:56:49 +01:00
Renamed clear to reset in TableBuilder.
This commit is contained in:
parent
c2561f4b96
commit
ef3aa03887
@ -133,7 +133,7 @@ Ref<QueryResult> TableBuilder::run() {
|
|||||||
void TableBuilder::run_query() {
|
void TableBuilder::run_query() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void TableBuilder::clear() {
|
void TableBuilder::reset() {
|
||||||
result.clear();
|
result.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -182,6 +182,8 @@ void TableBuilder::_bind_methods() {
|
|||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("run"), &TableBuilder::run);
|
ClassDB::bind_method(D_METHOD("run"), &TableBuilder::run);
|
||||||
ClassDB::bind_method(D_METHOD("run_query"), &TableBuilder::run_query);
|
ClassDB::bind_method(D_METHOD("run_query"), &TableBuilder::run_query);
|
||||||
|
|
||||||
|
ClassDB::bind_method(D_METHOD("reset"), &TableBuilder::reset);
|
||||||
}
|
}
|
||||||
|
|
||||||
Ref<TableBuilder> TableBuilder::_create_table_bind(const String &name) {
|
Ref<TableBuilder> TableBuilder::_create_table_bind(const String &name) {
|
||||||
|
@ -78,7 +78,7 @@ public:
|
|||||||
virtual Ref<QueryResult> run();
|
virtual Ref<QueryResult> run();
|
||||||
virtual void run_query();
|
virtual void run_query();
|
||||||
|
|
||||||
void clear();
|
void reset();
|
||||||
|
|
||||||
void print();
|
void print();
|
||||||
|
|
||||||
|
@ -251,7 +251,7 @@ void HTTPSessionManagerDB::_create_table() {
|
|||||||
// tb->print();
|
// tb->print();
|
||||||
tb->run_query();
|
tb->run_query();
|
||||||
|
|
||||||
tb->clear();
|
tb->reset();
|
||||||
|
|
||||||
tb->create_table(_database_data_table_name);
|
tb->create_table(_database_data_table_name);
|
||||||
tb->integer("session_db_id")->not_null()->next_row();
|
tb->integer("session_db_id")->not_null()->next_row();
|
||||||
|
Loading…
Reference in New Issue
Block a user