mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-23 09:28:07 +01:00
36 lines
960 B
C++
36 lines
960 B
C++
#include "database.h"
|
|
|
|
#include "database_connection.h"
|
|
#include "query_builder.h"
|
|
#include "query_result.h"
|
|
#include "table_builder.h"
|
|
|
|
String Database::get_connection_string() {
|
|
return _connection_string;
|
|
}
|
|
void Database::set_connection_string(const String &val) {
|
|
_connection_string = val;
|
|
}
|
|
|
|
Ref<DatabaseConnection> Database::get_connection() {
|
|
return _allocate_connection();
|
|
}
|
|
|
|
Ref<DatabaseConnection> Database::_allocate_connection() {
|
|
return Ref<DatabaseConnection>();
|
|
}
|
|
|
|
Database::Database() {
|
|
}
|
|
|
|
Database::~Database() {
|
|
}
|
|
|
|
void Database::_bind_methods() {
|
|
ClassDB::bind_method(D_METHOD("get_connection_string"), &Database::get_connection_string);
|
|
ClassDB::bind_method(D_METHOD("set_connection_string", "value"), &Database::set_connection_string);
|
|
ADD_PROPERTY(PropertyInfo(Variant::STRING, "connection_string"), "set_connection_string", "get_connection_string");
|
|
|
|
ClassDB::bind_method(D_METHOD("get_connection"), &Database::get_connection);
|
|
}
|