Flox Package Database 1
CRUD Operations on Nix Package Metadata
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Friends | List of all members
flox::pkgdb::SqlVersions Struct Reference

SQLite3 schema versions. More...

#include <read.hh>

Public Member Functions

constexpr bool operator== (const SqlVersions &other) const
 
constexpr bool operator!= (const SqlVersions &other) const
 

Public Attributes

unsigned tables
 
unsigned views
 

Friends

std::ostream & operator<< (std::ostream &oss, const SqlVersions &versions)
 Emit version information to an output stream.
 

Detailed Description

SQLite3 schema versions.

Member Function Documentation

◆ operator!=()

constexpr bool flox::pkgdb::SqlVersions::operator!= ( const SqlVersions other) const
inlineconstexpr
Returns
Whether two version sets are NOT equal.

◆ operator==()

constexpr bool flox::pkgdb::SqlVersions::operator== ( const SqlVersions other) const
inlineconstexpr
Returns
Whether two version sets are equal.

Member Data Documentation

◆ tables

unsigned flox::pkgdb::SqlVersions::tables

The SQLite3 tables schema version for the package database. Changing this value will cause the database to be recreated.

◆ views

unsigned flox::pkgdb::SqlVersions::views

The SQLite3 views schema version for the package database. Changing this value will cause the database's views definitions to be updated, but no existing data will be invalidated.


The documentation for this struct was generated from the following file: