// file : odb/pgsql/statement-cache.hxx // copyright : Copyright (c) 2005-2019 Code Synthesis Tools CC // license : GNU GPL v2; see accompanying LICENSE file #ifndef ODB_PGSQL_STATEMENT_CACHE_HXX #define ODB_PGSQL_STATEMENT_CACHE_HXX #include #include #include #include #include #include #include #include #include #include namespace odb { namespace pgsql { class statement_cache { public: statement_cache (connection& conn) : conn_ (conn), version_seq_ (conn.database ().schema_version_sequence ()) {} template typename object_traits_impl::statements_type& find_object (); template view_statements& find_view (); private: typedef std::map, details::type_info_comparator> map; connection& conn_; unsigned int version_seq_; map map_; }; } } #include #include #endif // ODB_PGSQL_STATEMENT_CACHE_HXX