// file : odb/mssql/statement-cache.hxx // license : ODB NCUEL; see accompanying LICENSE file #ifndef ODB_MSSQL_STATEMENT_CACHE_HXX #define ODB_MSSQL_STATEMENT_CACHE_HXX #include #include #include #include #include #include #include #include #include #include #include namespace odb { namespace mssql { class LIBODB_MSSQL_EXPORT 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_MSSQL_STATEMENT_CACHE_HXX