diff options
author | drh <drh@noemail.net> | 2018-11-05 23:01:45 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2018-11-05 23:01:45 +0000 |
commit | 84c501bac16576916840daffb671b72cf1f75625 (patch) | |
tree | 46dec0ac65957e550787f4137ffba3fd31accf0c /ext/misc/fileio.c | |
parent | 2d13f6016b4d7fa7b6618a2d79594cb5111f929d (diff) | |
download | sqlite-84c501bac16576916840daffb671b72cf1f75625.tar.gz sqlite-84c501bac16576916840daffb671b72cf1f75625.zip |
Initial code to make shadow tables read-only to ordinary SQL. The now
xShadowName method is added to the sqlite3_module object and is used
to identify potential shadow tables. The SQLITE_PREPARE_SHADOW argument
to sqlite3_prepare_v3() is defined. It is designed to permit writing to
shadow tables, but is currently an unused placeholder.
FossilOrigin-Name: 31942b3dd3f66eb0d9977bf1cadc2f2d7be7967cce2b55784be0b939dfef1985
Diffstat (limited to 'ext/misc/fileio.c')
-rw-r--r-- | ext/misc/fileio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/misc/fileio.c b/ext/misc/fileio.c index 816a353c6..e3e22ea4b 100644 --- a/ext/misc/fileio.c +++ b/ext/misc/fileio.c @@ -888,7 +888,8 @@ static int fsdirRegister(sqlite3 *db){ 0, /* xRename */ 0, /* xSavepoint */ 0, /* xRelease */ - 0 /* xRollbackTo */ + 0, /* xRollbackTo */ + 0, /* xShadowName */ }; int rc = sqlite3_create_module(db, "fsdir", &fsdirModule, 0); |