[prev in list] [next in list] [prev in thread] [next in thread]
List: sqlite-users
Subject: Re: [sqlite] Using SQLite as an application file format (C++)
From: Darren Landrum <darren.landrum () sbcglobal ! net>
Date: 2008-08-19 1:53:35
Message-ID: 48AA279F.3080504 () sbcglobal ! net
[Download RAW message or body]
Jeffrey Becker wrote:
> All you need to do is pass the string ":memory:" to sqlite3_openxxx
> and it will open a memory-backed database. That said I think your
> first order of business should be to try and define a good abstraction
> around the whole thing. While my C++ is a little rusty heres some C#
> pseudo code to get you started:
> public abstract class DbObject
> {
> // gets /sets the current versionid of this object. set = undo
> protected virtual long VersionID
> {
> get{...}
> set {...}
> }
>
> // the 'instanceid' of this object
> protected long ObjectID{get;set;}
>
> protected object getValue(string propertyName);
> protected void setValue(string propertyName, object value);
> }
Great! This post, combined with that tcl tutorial and the online docs
has, I think, shown me what I need to know to proceed, if at a slow
pace. Thank you all for your help! I'm sure I'll have more questions as
time goes on, but I am going to try to track down a copy of that book.
(I am, unfortunately, a very poor college student, at 32 years of age no
less, and cannot afford to buy a pricey computer book. I don't even know
where my next cel phone payment is coming from.)
-- Darren
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic