diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2016-05-14 11:00:42 +0200 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2016-05-22 11:34:47 +0200 |
commit | ce42ff9cf74ebb8d4b68bc78c95e90ea3db02b78 (patch) | |
tree | 53cca508f5c86b6930aeb5234d0e6ad7c6e7a5df /src/map.cpp | |
parent | 0f184d77c871b564b773b7fb81e7a3f16a197813 (diff) | |
download | hax-minetest-server-ce42ff9cf74ebb8d4b68bc78c95e90ea3db02b78.tar.gz hax-minetest-server-ce42ff9cf74ebb8d4b68bc78c95e90ea3db02b78.zip |
Implement a PostgreSQL backend
Diffstat (limited to '')
-rw-r--r-- | src/map.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map.cpp b/src/map.cpp index 848d2ef13..03daf4fa8 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -50,6 +50,9 @@ with this program; if not, write to the Free Software Foundation, Inc., #if USE_REDIS #include "database-redis.h" #endif +#if USE_POSTGRESQL +#include "database-postgresql.h" +#endif #define PP(x) "("<<(x).X<<","<<(x).Y<<","<<(x).Z<<")" @@ -3240,6 +3243,10 @@ Database *ServerMap::createDatabase( else if (name == "redis") return new Database_Redis(conf); #endif + #if USE_POSTGRESQL + else if (name == "postgresql") + return new Database_PostgreSQL(conf); + #endif else throw BaseException(std::string("Database backend ") + name + " not supported."); } |