summaryrefslogtreecommitdiff
path: root/static/netbsd/man3/sqlite3_bind_parameter_count.3
blob: f3d06d925aab10bc265099dc73099c8a046b1c89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.Dd January 24, 2024
.Dt SQLITE3_BIND_PARAMETER_COUNT 3
.Os
.Sh NAME
.Nm sqlite3_bind_parameter_count
.Nd number of SQL parameters
.Sh SYNOPSIS
.In sqlite3.h
.Ft int
.Fo sqlite3_bind_parameter_count
.Fa "sqlite3_stmt*"
.Fc
.Sh DESCRIPTION
This routine can be used to find the number of SQL parameters
in a prepared statement.
SQL parameters are tokens of the form "?", "?NNN", ":AAA", "$AAA",
or "@AAA" that serve as placeholders for values that are bound
to the parameters at a later time.
.Pp
This routine actually returns the index of the largest (rightmost)
parameter.
For all forms except ?NNN, this will correspond to the number of unique
parameters.
If parameters of the ?NNN form are used, there may be gaps in the list.
.Pp
.Sh IMPLEMENTATION NOTES
These declarations were extracted from the
interface documentation at line 4699.
.Bd -literal
SQLITE_API int sqlite3_bind_parameter_count(sqlite3_stmt*);
.Ed
.Sh SEE ALSO
.Xr sqlite3_bind_blob 3 ,
.Xr sqlite3_bind_parameter_index 3 ,
.Xr sqlite3_bind_parameter_name 3 ,
.Xr sqlite3_stmt 3