Changeset View
Changeset View
Standalone View
Standalone View
src/parser/KDbParser.h
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Line(s) | 106 | public: | |||
---|---|---|---|---|---|
157 | * or @c nullptr for any other statements or on error. | 157 | * or @c nullptr for any other statements or on error. | ||
158 | * @note A proper table schema is returned only once for each successful parse() call, | 158 | * @note A proper table schema is returned only once for each successful parse() call, | ||
159 | * and the object is owned by the caller. In all other cases @c nullptr is returned. | 159 | * and the object is owned by the caller. In all other cases @c nullptr is returned. | ||
160 | * | 160 | * | ||
161 | * @todo Implement this | 161 | * @todo Implement this | ||
162 | */ | 162 | */ | ||
163 | KDbTableSchema *table(); | 163 | KDbTableSchema *table(); | ||
164 | 164 | | |||
165 | //! @overload | ||||
166 | //! @since 3.1 | ||||
167 | const KDbTableSchema *table() const; | ||||
168 | | ||||
165 | /** | 169 | /** | ||
166 | * @return a pointer to a query schema if 'SELECT ...' statement was parsed | 170 | * @return a pointer to a new query schema created by parsing 'SELECT ...' statement | ||
167 | * or @c nullptr for any other statements or on error. | 171 | * or @c nullptr for any other statements or on error. | ||
172 | * If existing query was supplied to parse() @c nullptr is returned. | ||||
168 | * @note A proper query schema is returned only once for each successful parse() call, | 173 | * @note A proper query schema is returned only once for each successful parse() call, | ||
169 | * and the object is owned by the caller. In all other cases nullptr is returned. | 174 | * and the object is owned by the caller. In all other cases nullptr is returned. | ||
170 | */ | 175 | */ | ||
171 | KDbQuerySchema *query(); | 176 | KDbQuerySchema *query(); | ||
172 | 177 | | |||
173 | /** | 178 | /** | ||
174 | * @return a pointer to the used database connection or @c nullptr if it was not set. | 179 | * @return a pointer to the used database connection or @c nullptr if it was not set. | ||
175 | */ | 180 | */ | ||
176 | KDbConnection *connection() const; | 181 | KDbConnection *connection(); | ||
182 | | ||||
183 | //! @overload | ||||
184 | //! @since 3.1 | ||||
185 | const KDbConnection *connection() const; | ||||
177 | 186 | | |||
178 | /** | 187 | /** | ||
179 | * @return detailed information about last error. | 188 | * @return detailed information about last error. | ||
180 | * If no error occurred KDbParserError::type() is empty. | 189 | * If no error occurred KDbParserError::type() is empty. | ||
181 | */ | 190 | */ | ||
182 | KDbParserError error() const; | 191 | KDbParserError error() const; | ||
183 | 192 | | |||
184 | /** | 193 | /** | ||
Show All 16 Lines |