Changeset View
Changeset View
Standalone View
Standalone View
src/KDbQuerySchema_p.h
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | 36 | public: | |||
---|---|---|---|---|---|
75 | inline int tablePositionForAlias(const QString& alias) const { | 75 | inline int tablePositionForAlias(const QString& alias) const { | ||
76 | return tablePositionsForAliases.value(alias.toLower(), -1); | 76 | return tablePositionsForAliases.value(alias.toLower(), -1); | ||
77 | } | 77 | } | ||
78 | 78 | | |||
79 | inline int columnPositionForAlias(const QString& alias) const { | 79 | inline int columnPositionForAlias(const QString& alias) const { | ||
80 | return columnPositionsForAliases.value(alias.toLower(), -1); | 80 | return columnPositionsForAliases.value(alias.toLower(), -1); | ||
81 | } | 81 | } | ||
82 | 82 | | |||
83 | //! Accessor for buildSelectQuery() | ||||
84 | static void setWhereExpressionInternal(KDbQuerySchema *query, const KDbExpression &expr) | ||||
85 | { | ||||
86 | query->d->whereExpr = expr; | ||||
87 | } | ||||
88 | | ||||
83 | KDbQuerySchema *query; | 89 | KDbQuerySchema *query; | ||
84 | 90 | | |||
85 | /*! Master table of the query. (may be NULL) | 91 | /*! Master table of the query. (may be NULL) | ||
86 | Any data modifications can be performed if we know master table. | 92 | Any data modifications can be performed if we know master table. | ||
87 | If null, query's records cannot be modified. */ | 93 | If null, query's records cannot be modified. */ | ||
88 | KDbTableSchema *masterTable; | 94 | KDbTableSchema *masterTable; | ||
89 | 95 | | |||
90 | /*! List of tables used in this query */ | 96 | /*! List of tables used in this query */ | ||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |