Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
binders.hpp File Reference
#include <QByteArray>
#include <QString>
#include <concepts>
#include <sqlite3.h>

Go to the source code of this file.

Macros

#define ATLASGAMEMANAGER_BINDERS_HPP
 

Functions

template<typename T>
int bindParameter (sqlite3_stmt *, const T, const int) noexcept=delete
 
template<typename T>
requires std::is_integral_v< T >
int bindParameter (sqlite3_stmt *stmt, const T val, const int idx) noexcept
 
template<typename T>
requires std::is_same_v< T, QString >
int bindParameter (sqlite3_stmt *stmt, const QString val, const int idx) noexcept
 
template<typename T>
requires std::is_same_v< T, std::u8string >
int bindParameter (sqlite3_stmt *stmt, const std::u8string val, const int idx) noexcept
 
template<typename T>
requires std::is_same_v< T, std::string_view >
int bindParameter (sqlite3_stmt *stmt, const std::string_view val, const int idx) noexcept
 
template<typename T>
requires std::is_same_v< T, std::filesystem::path >
int bindParameter (sqlite3_stmt *stmt, const std::filesystem::path val, const int idx) noexcept
 
template<typename T>
requires std::is_same_v< T, std::vector< std::byte > >
int bindParameter (sqlite3_stmt *stmt, const std::vector< std::byte > val, const int idx) noexcept
 
template<typename T>
requires std::is_same_v< T, std::nullopt_t >
int bindParameter (sqlite3_stmt *stmt, const std::nullopt_t nullopt, const int idx) noexcept
 
template<typename T>
requires std::is_floating_point_v< T >
int bindParameter (sqlite3_stmt *stmt, const T val, const int idx) noexcept
 
template<typename T>
requires std::is_same_v< std::string, T >
int bindParameter (sqlite3_stmt *stmt, const T val, const int idx) noexcept
 

Macro Definition Documentation

◆ ATLASGAMEMANAGER_BINDERS_HPP

#define ATLASGAMEMANAGER_BINDERS_HPP

Function Documentation

◆ bindParameter() [1/10]

template<typename T>
int bindParameter ( sqlite3_stmt * stmt,
const T val,
const int idx )
nodiscarddeletenoexcept

◆ bindParameter() [2/10]

template<typename T>
requires std::is_same_v< T, QString >
int bindParameter ( sqlite3_stmt * stmt,
const QString val,
const int idx )
nodiscardnoexcept

◆ bindParameter() [3/10]

template<typename T>
requires std::is_same_v< T, std::filesystem::path >
int bindParameter ( sqlite3_stmt * stmt,
const std::filesystem::path val,
const int idx )
nodiscardnoexcept

◆ bindParameter() [4/10]

template<typename T>
requires std::is_same_v< T, std::nullopt_t >
int bindParameter ( sqlite3_stmt * stmt,
const std::nullopt_t nullopt,
const int idx )
nodiscardnoexcept

◆ bindParameter() [5/10]

template<typename T>
requires std::is_same_v< T, std::string_view >
int bindParameter ( sqlite3_stmt * stmt,
const std::string_view val,
const int idx )
nodiscardnoexcept

◆ bindParameter() [6/10]

template<typename T>
requires std::is_same_v< T, std::u8string >
int bindParameter ( sqlite3_stmt * stmt,
const std::u8string val,
const int idx )
nodiscardnoexcept

◆ bindParameter() [7/10]

template<typename T>
requires std::is_same_v< T, std::vector< std::byte > >
int bindParameter ( sqlite3_stmt * stmt,
const std::vector< std::byte > val,
const int idx )
nodiscardnoexcept

◆ bindParameter() [8/10]

template<typename T>
requires std::is_integral_v< T >
int bindParameter ( sqlite3_stmt * stmt,
const T val,
const int idx )
nodiscarddeletenoexcept

◆ bindParameter() [9/10]

template<typename T>
requires std::is_floating_point_v< T >
int bindParameter ( sqlite3_stmt * stmt,
const T val,
const int idx )
nodiscarddeletenoexcept

◆ bindParameter() [10/10]

template<typename T>
requires std::is_same_v< std::string, T >
int bindParameter ( sqlite3_stmt * stmt,
const T val,
const int idx )
nodiscarddeletenoexcept