mirror of
https://gitlab.com/spaceti-app/integrations/common/server-sdk.git
synced 2026-07-12 12:50:50 +02:00
27 lines
493 B
C++
27 lines
493 B
C++
#pragma once
|
|
|
|
#include <QObject>
|
|
|
|
#include "databasetable.h"
|
|
|
|
namespace serversdk {
|
|
|
|
class DatabaseUtils : public QObject
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit DatabaseUtils(const QString type = "SQLITE");
|
|
QString createTableSQL(const DatabaseTable *table, const QString table_name) const;
|
|
|
|
QString sqlType() const;
|
|
void setSqlType(const QString &sqlType);
|
|
|
|
private:
|
|
QString textSQLIteType(QVariant::Type type) const;
|
|
private:
|
|
QString mSqlType;
|
|
};
|
|
|
|
} // namespace serversdk
|
|
|