// file : mod/database.hxx -*- C++ -*- // copyright : Copyright (c) 2014-2019 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file #ifndef MOD_DATABASE_HXX #define MOD_DATABASE_HXX #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 role, string password, string name, string host, uint16_t port, size_t max_connections); } #endif // MOD_DATABASE_HXX