// file : mod/database -*- C++ -*- // copyright : Copyright (c) 2014-2017 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file #ifndef MOD_DATABASE #define MOD_DATABASE #include // database #include #include namespace brep { // Return pointer to the shared database instance, creating one on the first // call. Throw odb::exception on failure. Is not thread-safe. // shared_ptr shared_database (string user, string password, string name, string host, uint16_t port, size_t max_connections); } #endif // MOD_DATABASE