Dummy type representing a literal value for SQL operations.
More...
#include <bpstypes.h>
Dummy type representing a literal value for SQL operations.
Used by several methods in BpsDatastore and BpsSqlValues.
vals[
bStr(
"c_text")] =
bStr(
"some text");
q.prepare(
bStr(
"insert into t_testtable (%1) values (%2)")
);
#define bStr(aStr)
Encapsulation for string literals.
Definition: bpsglobals.h:125
Convenience class to help composing select, insert and update statements.
Definition: bpssqlvalues.h:54
QVariantList values() const
QString columns(const QString &aPrefix=QString()) const
BpsTypeLiteral()
The default constructor.
◆ BpsTypeLiteral() [1/3]
BpsTypeLiteral::BpsTypeLiteral |
( |
const QString & |
aString | ) |
|
Construct from QString.
- Parameters
-
aString | The string to use. |
◆ BpsTypeLiteral() [2/3]
BpsTypeLiteral::BpsTypeLiteral |
( |
const QByteArray & |
aByteArray | ) |
|
Construct from QByteArray.
- Parameters
-
aByteArray | The bytearray to use. |
◆ BpsTypeLiteral() [3/3]
The copy constructor.
- Parameters
-
aOther | The other number value to copy from. |
◆ metaType()
static int BpsTypeLiteral::metaType |
( |
| ) |
|
|
static |
◆ operator QVariant()
BpsTypeLiteral::operator QVariant |
( |
| ) |
const |
◆ toString()
QString BpsTypeLiteral::toString |
( |
| ) |
const |
The documentation for this class was generated from the following file: