aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordrh <>2025-01-22 19:37:47 +0000
committerdrh <>2025-01-22 19:37:47 +0000
commitc850c2be757ffbf11423b47f8ef94bd0ce20f048 (patch)
treef88eda4678b42911d2bd2661c354a13b4f89a7f3 /src/sqliteInt.h
parent9489aefb83fd72aa64fafe6a98617af9dfdcc538 (diff)
downloadsqlite-c850c2be757ffbf11423b47f8ef94bd0ce20f048.tar.gz
sqlite-c850c2be757ffbf11423b47f8ef94bd0ce20f048.zip
Add two new sqlite3_db_config() options that enable the ATTACH command
to create new database files and to open databases read/write. Both default to on for backwards compatibility. FossilOrigin-Name: fe0c58d00b491d1af7c0894f5c32542954aeea2e6510853b3bcbf13ac0bf5ce0
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index 3045d7c4a..aa7e297e7 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -1830,6 +1830,8 @@ struct sqlite3 {
#define SQLITE_CorruptRdOnly HI(0x00002) /* Prohibit writes due to error */
#define SQLITE_ReadUncommit HI(0x00004) /* READ UNCOMMITTED in shared-cache */
#define SQLITE_FkNoAction HI(0x00008) /* Treat all FK as NO ACTION */
+#define SQLITE_AttachCreate HI(0x00010) /* ATTACH allowed to create new dbs */
+#define SQLITE_AttachWrite HI(0x00020) /* ATTACH allowed to open for write */
/* Flags used only if debugging */
#ifdef SQLITE_DEBUG