OpenSWMM Engine  6.0.0-alpha.4
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmm::gpkg::DbDeleter Struct Reference

Unique-pointer deleter using SQLite deferred close semantics. More...

#include <GpkgUtils.hpp>

Collaboration diagram for openswmm::gpkg::DbDeleter:

Public Member Functions

void operator() (sqlite3 *db) const noexcept
 Best-effort close a uniquely owned SQLite connection.
 

Detailed Description

Unique-pointer deleter using SQLite deferred close semantics.

Member Function Documentation

◆ operator()()

void openswmm::gpkg::DbDeleter::operator() ( sqlite3 * db) const
inlinenoexcept

Best-effort close a uniquely owned SQLite connection.

Calls sqlite3_close_v2 and ignores status; SQLite may defer actual destruction until outstanding statements are finalized.

Parameters
[in]dbOwned connection, or nullptr for no-op; caller releases ownership after this invocation.

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