xref: /netbsd-src/external/public-domain/sqlite/man/sqlite3_db_readonly.3 (revision c38e7cc395b1472a774ff828e46123de44c628e9)
1.Dd March 11, 2017
2.Dt SQLITE3_DB_READONLY 3
3.Os
4.Sh NAME
5.Nm sqlite3_db_readonly
6.Nd Determine if a database is read-only
7.Sh SYNOPSIS
8.Ft int
9.Fo sqlite3_db_readonly
10.Fa "sqlite3 *db"
11.Fa "const char *zDbName"
12.Fc
13.Sh DESCRIPTION
14The sqlite3_db_readonly(D,N) interface returns 1 if the database N
15of connection D is read-only, 0 if it is read/write, or -1 if N is
16not the name of a database on connection D.
17