.Dd January 24, 2024 .Dt SQLITE3_DB_HANDLE 3 .Os .Sh NAME .Nm sqlite3_db_handle .Nd find the database handle of a prepared statement .Sh SYNOPSIS .In sqlite3.h .Ft sqlite3 * .Fo sqlite3_db_handle .Fa "sqlite3_stmt*" .Fc .Sh DESCRIPTION The sqlite3_db_handle interface returns the database connection handle to which a prepared statement belongs. The database connection returned by sqlite3_db_handle is the same database connection that was the first argument to the .Fn sqlite3_prepare_v2 call (or its variants) that was used to create the statement in the first place. .Sh IMPLEMENTATION NOTES These declarations were extracted from the interface documentation at line 6578. .Bd -literal SQLITE_API sqlite3 *sqlite3_db_handle(sqlite3_stmt*); .Ed .Sh SEE ALSO .Xr sqlite3 3 , .Xr sqlite3_prepare 3 , .Xr sqlite3_stmt 3