Feature #3616 ยป 0001-Add-tableNameQuoted-method-to-Dbo-Session.patch
src/Wt/Dbo/Session | ||
---|---|---|
115 | 115 | |
116 | 116 |
/*! \brief Returns the mapped table name for a class. |
117 | 117 |
* |
118 |
* \sa mapClass() |
|
118 |
* \sa mapClass(), tableNameQuoted()
|
|
119 | 119 |
*/ |
120 | 120 |
template <class C> const char *tableName() const; |
121 | 121 | |
122 |
/*! \brief Returns the mapped quoted table name for a class. |
|
123 |
* |
|
124 |
* This will quote schemas, as necessary. |
|
125 |
* |
|
126 |
* \sa mapClass(), tableName() |
|
127 |
*/ |
|
128 |
template <class C> const std::string tableNameQuoted() const; |
|
129 | ||
122 | 130 |
/*! \brief Persists a transient object. |
123 | 131 |
* |
124 | 132 |
* The transient object pointed to by \p ptr is added to the |
src/Wt/Dbo/Session_impl.h | ||
---|---|---|
84 | 84 |
} |
85 | 85 | |
86 | 86 |
template <class C> |
87 |
const std::string Session::tableNameQuoted() const |
|
88 |
{ |
|
89 |
return std::string("\"") + Impl::quoteSchemaDot(tableName<C>()) + '"'; |
|
90 |
} |
|
91 | ||
92 |
template <class C> |
|
87 | 93 |
Session::Mapping<C> *Session::getMapping() const |
88 | 94 |
{ |
89 | 95 |
if (!schemaInitialized_) |
90 |
- |