Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::SQLiteStmt::Use Class Reference

#include <sqlite.hh>

Public Member Functions

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

Friends

struct SQLiteStmt

Detailed Description

Helper for binding / executing statements.

Member Function Documentation

◆ apply()

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

Bind the next parameter.

◆ 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.


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