Renamed clear to reset in TableBuilder.

This commit is contained in:
Relintai 2024-04-27 19:44:16 +02:00
parent c2561f4b96
commit ef3aa03887
3 changed files with 5 additions and 3 deletions

View File

@ -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) {

View File

@ -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();

View File

@ -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();