Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Readonly connection
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ari.hausmanco...@gmail.com  
View profile  
 More options Jul 23 2012, 3:37 pm
From: ari.hausmanco...@gmail.com
Date: Mon, 23 Jul 2012 12:37:53 -0700 (PDT)
Local: Mon, Jul 23 2012 3:37 pm
Subject: Readonly connection

Hi, I'm looking to to use this great project in a metro style app, and
would like to open an already-created file as a read-only database. I have
no problem opening it in general, but I'm unclear on how to make the
connection read-only.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ari.hausmanco...@gmail.com  
View profile  
 More options Jul 23 2012, 3:56 pm
From: ari.hausmanco...@gmail.com
Date: Mon, 23 Jul 2012 12:56:53 -0700 (PDT)
Local: Mon, Jul 23 2012 3:56 pm
Subject: Re: Readonly connection

(As a note, I never intend to write to a database in this project, so
changes to the source code that could affect all databases used are ok)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Stewart  
View profile  
 More options Aug 21 2012, 10:09 am
From: Stewart <stewart.adc...@gmail.com>
Date: Tue, 21 Aug 2012 07:09:50 -0700 (PDT)
Local: Tues, Aug 21 2012 10:09 am
Subject: Re: Readonly connection

Hi (unknown),

If you still need this.

Assuming that you are using the ADO.Net API to access the db, I've
implemented the "Read Only" parameter (that the C++ implementation has) for
this C# implementation.  You can test it using the code from this
clone http://code.google.com/r/stewartadcock-csharp-sqlite-updates/ - it
works for me with Mono on Mac OS X, and I assume it will work on Windows
with .Net even though I haven't tested that yet.

To connect to a db in read-only mode, add "Read Only=True" to your
connection string, and then connect as normal.  Any attempts to write to
the db will fail.

I have also implemented the SQLite3 "FailIfMissing" parameter.  If set to
true, sqlite will not create an empty db in the case that the specified uri
doesn't exist.  This is also derived from the C++ version's parameter of
the same name, to improve source-level compatibility.

Regards,
Stewart.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »