Project

General

Profile

Feature #3616 ยป 0001-Add-tableNameQuoted-method-to-Dbo-Session.patch

Bruce Toll, 10/02/2014 12:23 AM

View differences:

src/Wt/Dbo/Session
/*! \brief Returns the mapped table name for a class.
*
* \sa mapClass()
* \sa mapClass(), tableNameQuoted()
*/
template <class C> const char *tableName() const;
/*! \brief Returns the mapped quoted table name for a class.
*
* This will quote schemas, as necessary.
*
* \sa mapClass(), tableName()
*/
template <class C> const std::string tableNameQuoted() const;
/*! \brief Persists a transient object.
*
* The transient object pointed to by \p ptr is added to the
src/Wt/Dbo/Session_impl.h
}
template <class C>
const std::string Session::tableNameQuoted() const
{
return std::string("\"") + Impl::quoteSchemaDot(tableName<C>()) + '"';
}
template <class C>
Session::Mapping<C> *Session::getMapping() const
{
if (!schemaInitialized_)
    (1-1/1)