Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::SQLiteStmt::Use Class Reference

#include <sqlite.hh>

Public Member Functions

Use & operator() (std::string_view value, bool notNull=true)
Use & operator() (const unsigned char *data, size_t len, bool notNull=true)
Use & operator() (int64_t value, bool notNull=true)
Use & bind ()
void exec ()
bool next ()
std::string getStr (int col)
std::optional< std::string > getStrNullable (int col)
int64_t getInt (int col)
bool isNull (int col)

Friends

class SQLiteStmt

Detailed Description

Helper for binding / executing statements.

Member Function Documentation

◆ exec()

void nix::SQLiteStmt::Use::exec ( )

Execute a statement that does not return rows.

◆ next()

bool nix::SQLiteStmt::Use::next ( )

For statements that return 0 or more rows. Returns true iff a row is available.

◆ operator()()

SQLiteStmt::Use & nix::SQLiteStmt::Use::operator() ( std::string_view value,
bool notNull = true )

Bind the next parameter.


The documentation for this class was generated from the following files:
  • lix/libstore/sqlite.hh
  • lix/libstore/sqlite.cc