xref: /netbsd-src/external/public-domain/sqlite/man/sqlite3_db_handle.3 (revision b9988867a8ad969c45a52aa7628bc932ec98d46b)
1.Dd January 24, 2024
2.Dt SQLITE3_DB_HANDLE 3
3.Os
4.Sh NAME
5.Nm sqlite3_db_handle
6.Nd find the database handle of a prepared statement
7.Sh SYNOPSIS
8.In sqlite3.h
9.Ft sqlite3 *
10.Fo sqlite3_db_handle
11.Fa "sqlite3_stmt*"
12.Fc
13.Sh DESCRIPTION
14The sqlite3_db_handle interface returns the database connection
15handle to which a prepared statement belongs.
16The database connection returned by sqlite3_db_handle
17is the same database connection that was the first
18argument to the
19.Fn sqlite3_prepare_v2
20call (or its variants) that was used to create the statement in the
21first place.
22.Sh IMPLEMENTATION NOTES
23These declarations were extracted from the
24interface documentation at line 6578.
25.Bd -literal
26SQLITE_API sqlite3 *sqlite3_db_handle(sqlite3_stmt*);
27.Ed
28.Sh SEE ALSO
29.Xr sqlite3 3 ,
30.Xr sqlite3_prepare 3 ,
31.Xr sqlite3_stmt 3
32