libnick 2024.12.0
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
sqlvalue.h
Go to the documentation of this file.
1
23#ifndef SQLVALUE_H
24#define SQLVALUE_H
25
26#ifndef SQLITE_HAS_CODEC
27#define SQLITE_HAS_CODEC
28#endif
29
30#include <string>
31#include <utility>
32#ifdef _WIN32
33#include <sqlcipher/sqlite3.h>
34#else
35#include "sqlite3.h"
36#endif
37
39{
44 {
45 public:
50 SqlValue(sqlite3_value* value);
55 int getInt() const;
60 sqlite3_int64 getInt64() const;
65 double getDouble() const;
70 bool getBool() const;
75 std::string getString() const;
80 std::pair<const void*, size_t> getBlob() const;
81
82 private:
83 sqlite3_value* m_value;
84 };
85}
86
87#endif //SQLVALUE_H
88
A sqlite value.
Definition sqlvalue.h:44
bool getBool() const
Gets a bool from a value.
std::string getString() const
Gets a string from a value.
SqlValue(sqlite3_value *value)
Constructs an SqlValue.
int getInt() const
Gets an int from a value.
sqlite3_int64 getInt64() const
Gets an int64 from a value.
std::pair< const void *, size_t > getBlob() const
Gets a blob from a value.
double getDouble() const
Gets a double from a value.
Definition sqlcontext.h:40