]
can.net cc:
Subject: Re: [sqlite] Read/Write
permission
06/09/2004 03:41
[EMAIL PROTECTED] wrote:
Anyway, I looked through sqlite.org but couldn't find how to properly open
an sqlite database in read-only mode. If any knows how to do so
(preferably in TCL binding), please let me know.
According to the docs on the C/C++ bindings, the mode argument to open() does
this,
Try setting permissions to read-only for the file, not
for the whole directory.
**kaw~/sqlite$ v sp
-r--r--r--1 kaw users8192 Jan 1 12:41 sp
**kaw~/sqlite$ tclsh
% load tclsqlite.so
% sqlite db sp
0x806fb50
% db eval {select * from S}
S1 Smith 20 London S2 Jones 10 Paris S3