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 | | |||
178 | //! @overload | ||||
179 | //! @since 3.1 | ||||
180 | const KDbQuerySchema *query() const; | ||||
181 | | ||||
173 | /** | 182 | /** | ||
174 | * @return a pointer to the used database connection or @c nullptr if it was not set. | 183 | * @return a pointer to the used database connection or @c nullptr if it was not set. | ||
175 | */ | 184 | */ | ||
176 | KDbConnection *connection() const; | 185 | KDbConnection *connection(); | ||
186 | | ||||
187 | //! @overload | ||||
188 | //! @since 3.1 | ||||
189 | const KDbConnection *connection() const; | ||||
177 | 190 | | |||
178 | /** | 191 | /** | ||
179 | * @return detailed information about last error. | 192 | * @return detailed information about last error. | ||
180 | * If no error occurred KDbParserError::type() is empty. | 193 | * If no error occurred KDbParserError::type() is empty. | ||
181 | */ | 194 | */ | ||
182 | KDbParserError error() const; | 195 | KDbParserError error() const; | ||
183 | 196 | | |||
184 | /** | 197 | /** | ||
Show All 16 Lines |