Herunterladen als
root/src/schema/sqlitequerybuilder.cpp @ ba800d6d
b0bf458e | Christian Ehringfeld | #include "sqlitequerybuilder.h"
|
|
d99101ae | Christian Ehringfeld | #include "../schema.h"
|
|
b0bf458e | Christian Ehringfeld | ||
CuteEntityManager::SqliteQueryBuilder::SqliteQueryBuilder(QSharedPointer<CuteEntityManager::Schema> schema,
|
|||
QSharedPointer<CuteEntityManager::Database> database) : QueryBuilder(schema, database) {
|
|||
}
|
|||
CuteEntityManager::SqliteQueryBuilder::~SqliteQueryBuilder() {
|
|||
}
|
|||
d99101ae | Christian Ehringfeld | ||
QString CuteEntityManager::SqliteQueryBuilder::truncateTable(QString tableName) const {
|
|||
return "DELETE FROM " + this->schema.data()->quoteTableName(tableName);
|
|||
}
|
|||
QString CuteEntityManager::SqliteQueryBuilder::dropIndex(QString name, QString tableName) const {
|
|||
return "DROP INDEX " + this->schema.data()->quoteTableName(name);
|
|||
}
|
|||
QString CuteEntityManager::SqliteQueryBuilder::dropColumn(QString tableName, QString columName) const {
|
|||
//not supported
|
|||
return "";
|
|||
}
|
|||
QString CuteEntityManager::SqliteQueryBuilder::renameColumn(QString tableName, QString oldName, QString newName) const {
|
|||
//not supported
|
|||
return "";
|
|||
}
|
|||
QString CuteEntityManager::SqliteQueryBuilder::addForeignKey(QString name, QString tableName, QStringList columns,
|
|||
QString refTableName, QStringList refColumns, QString deleteConstraint, QString updateConstraint) const {
|
|||
//not supported
|
|||
return "";
|
|||
}
|
|||
QString CuteEntityManager::SqliteQueryBuilder::dropForeignKey(QString name, QString tableName) const {
|
|||
//not supported
|
|||
return "";
|
|||
}
|
|||
QString CuteEntityManager::SqliteQueryBuilder::alterColumn(QString tableName, QString columnName,
|
|||
QString newType) const {
|
|||
//not supported
|
|||
return "";
|
|||
}
|
|||
QString CuteEntityManager::SqliteQueryBuilder::addPrimaryKey(QString name, QString tableName,
|
|||
QStringList columns) const {
|
|||
//not supported
|
|||
return "";
|
|||
}
|
|||
QString CuteEntityManager::SqliteQueryBuilder::dropPrimaryKey(QString name, QString tableName) const {
|
|||
//not supported
|
|||
return "";
|
|||
}
|