summaryrefslogtreecommitdiff
path: root/static/netbsd/man3/SQLITE_SERIALIZE_NOCOPY.3
blob: 65cb7fb80660086b9a07fe9ca1c010c498c02db9 (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
.Dd January 24, 2024
.Dt SQLITE_SERIALIZE_NOCOPY 3
.Os
.Sh NAME
.Nm SQLITE_SERIALIZE_NOCOPY
.Nd flags for sqlite3_serialize
.Sh SYNOPSIS
.In sqlite3.h
.Fd #define SQLITE_SERIALIZE_NOCOPY
.Sh DESCRIPTION
Zero or more of the following constants can be OR-ed together for the
F argument to sqlite3_serialize(D,S,P,F).
.Pp
SQLITE_SERIALIZE_NOCOPY means that
.Fn sqlite3_serialize
will return a pointer to contiguous in-memory database that it is currently
using, without making a copy of the database.
If SQLite is not currently using a contiguous in-memory database, then
this option causes
.Fn sqlite3_serialize
to return a NULL pointer.
SQLite will only be using a contiguous in-memory database if it has
been initialized by a prior call to
.Fn sqlite3_deserialize .
.Sh IMPLEMENTATION NOTES
These declarations were extracted from the
interface documentation at line 10686.
.Bd -literal
#define SQLITE_SERIALIZE_NOCOPY 0x001   /* Do no memory allocations */
.Ed
.Sh SEE ALSO
.Xr sqlite3_deserialize 3 ,
.Xr sqlite3_serialize 3