blob: 5ad59b11dd846d61bc21634bd841a4707861414a (
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
|
.Dd January 24, 2024
.Dt SQLITE3_BIND_PARAMETER_INDEX 3
.Os
.Sh NAME
.Nm sqlite3_bind_parameter_index
.Nd index of a parameter with a given name
.Sh SYNOPSIS
.In sqlite3.h
.Ft int
.Fo sqlite3_bind_parameter_index
.Fa "sqlite3_stmt*"
.Fa "const char *zName"
.Fc
.Sh DESCRIPTION
Return the index of an SQL parameter given its name.
The index value returned is suitable for use as the second parameter
to sqlite3_bind().
A zero is returned if no matching parameter is found.
The parameter name must be given in UTF-8 even if the original statement
was prepared from UTF-16 text using
.Fn sqlite3_prepare16_v2
or
.Fn sqlite3_prepare16_v3 .
.Sh IMPLEMENTATION NOTES
These declarations were extracted from the
interface documentation at line 4748.
.Bd -literal
SQLITE_API int sqlite3_bind_parameter_index(sqlite3_stmt*, const char *zName);
.Ed
.Sh SEE ALSO
.Xr sqlite3_bind_blob 3 ,
.Xr sqlite3_bind_parameter_count 3 ,
.Xr sqlite3_bind_parameter_name 3 ,
.Xr sqlite3_prepare 3
|