Welcome to MacBoardz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

ObjC SQLite wrapper ???

 
   Macintosh computer (Home) -> Programmer Help RSS
Next:  creating image thumbnails is slow in java, sugges..  
Author Message
Ima Pseudonym

External


Since: Jan 26, 2008
Posts: 13



(Msg. 1) Posted: Sat Jan 26, 2008 8:54 pm
Post subject: ObjC SQLite wrapper ???
Archived from groups: comp>sys>mac>programmer>help (more info?)

Hail

I've started thinking about writing a simple database application, in
which the document's contents will be set and maintained by the user
(i.e. I can't use XCode to generate the schema at compile time and use a
managed object solution.

So I started Googling for SQLite wrappers in ObjC and found that there
aren't any recent versions. Most of the more "complete" ones are 2005
vintage (pre SQLite database file format change).

Can anybody point me to anything more current ?

Will

 >> Stay informed about: ObjC SQLite wrapper ??? 
Back to top
Login to vote
Doc O'Leary

External


Since: Jan 03, 2008
Posts: 3



(Msg. 2) Posted: Sun Jan 27, 2008 9:19 am
Post subject: Re: ObjC SQLite wrapper ??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Ima Pseudonym wrote:

> So I started Googling for SQLite wrappers in ObjC and found that there
> aren't any recent versions. Most of the more "complete" ones are 2005
> vintage (pre SQLite database file format change).

Have you tried contacting the developers? Some of us, and this applies
not only to SQLite frameworks, maintain up to date versions for internal
use and only bother to make releases when there is some external reason
for it. By keeping silent you set up a vicious cycle of developer's not
releasing updates because they get no feedback, so they get no feedback
because they haven't been releasing updates.

--
My personal UDP list: 127.0.0.1, 4ax.com, buzzardnews.com, googlegroups.com,
heapnode.com, localhost, ntli.net, teranews.com, vif.com, x-privat.org

 >> Stay informed about: ObjC SQLite wrapper ??? 
Back to top
Login to vote
Megadave

External


Since: Dec 29, 2007
Posts: 22



(Msg. 3) Posted: Sun Jan 27, 2008 9:48 am
Post subject: Re: ObjC SQLite wrapper ??? [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Ima Pseudonym

External


Since: Jan 26, 2008
Posts: 13



(Msg. 4) Posted: Sun Jan 27, 2008 12:19 pm
Post subject: Re: ObjC SQLite wrapper ??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hail

In article
,
Doc O'Leary wrote:

> In article ,
> Ima Pseudonym wrote:
[snipt]
>
> Have you tried contacting the developers? Some of us, and this applies
> not only to SQLite frameworks, maintain up to date versions for internal
> use and only bother to make releases when there is some external reason
> for it. By keeping silent you set up a vicious cycle of developer's not
> releasing updates because they get no feedback, so they get no feedback
> because they haven't been releasing updates.

A good point, but of the three most likely candidates:

- one seems to have moved on (from ObjC) and my Googling found
references on Ruby-themed boards for the last few years. He mentioned
that a new (ObjC) version was in the works and asked for beta testers
back in 2005. That release was never issued; maybe not enough interest
then ?)

- the other two have also moved on and have no visible email addresses.
They do have websites for their new products, but searching their sites
gives no recent references for the sqlite wrapper.

I really do hesitate to drop a line into the feedback bin at their
websites to query an obsolete freeware (i hope Wink product that isn't
even listed any more.

So, I decided to try asking here. If that didn't work then I have three
choices: fuggedaboudit,try to update an old one, start from scratch. I'm
really leaning towards old number 1 -)

Will
 >> Stay informed about: ObjC SQLite wrapper ??? 
Back to top
Login to vote
Reinder Verlinde

External


Since: Feb 18, 2004
Posts: 137



(Msg. 5) Posted: Sun Jan 27, 2008 2:26 pm
Post subject: Re: ObjC SQLite wrapper ??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article ,
Ima Pseudonym wrote:

> Hail
>
> I've started thinking about writing a simple database application, in
> which the document's contents will be set and maintained by the user
> (i.e. I can't use XCode to generate the schema at compile time and use a
> managed object solution.
>
> So I started Googling for SQLite wrappers in ObjC and found that there
> aren't any recent versions.

there is an alternative:
<http://developer.apple.com/documentation/Cocoa/Conceptual/CoreDataUtilit
yTutorial/index.html>:

"The task goal of this tutorial is to create a low-level Core
Data-based utility. [...] It shows that although Cocoa bindings can
be used to leverage the functionality in Core Data, it is possible
to use Core Data independently. Moreover, it shows all aspects of
the creation of a Core Data stack, instantiation of managed objects,
and fetching, all without the distraction of a user interface‹it
even shows the creation of a model in code."

Reinder
 >> Stay informed about: ObjC SQLite wrapper ??? 
Back to top
Login to vote
Ima Pseudonym

External


Since: Jan 26, 2008
Posts: 13



(Msg. 6) Posted: Sun Jan 27, 2008 2:26 pm
Post subject: Re: ObjC SQLite wrapper ??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hail

In article
,
Reinder Verlinde wrote:

> In article ,
> Ima Pseudonym wrote:
[snipt]
> > I've started thinking about writing a simple database application, in
> > which the document's contents will be set and maintained by the user
> > (i.e. I can't use XCode to generate the schema at compile time and use a
> > managed object solution.
[snipt]
>
> there is an alternative:
> <http://developer.apple.com/documentation/Cocoa/Conceptual/CoreDataUtilit
> yTutorial/index.html>:
>
> "The task goal of this tutorial is to create a low-level Core
> Data-based utility. [...] It shows that although Cocoa bindings can
> be used to leverage the functionality in Core Data, it is possible
> to use Core Data independently. Moreover, it shows all aspects of
> the creation of a Core Data stack, instantiation of managed objects,
> and fetching, all without the distraction of a user interface‹it
> even shows the creation of a model in code."
>
> Reinder

Thanks for the suggestion, I hadn't seen that it was possible to do
that. But it's probably not a good solution for me.

I didn't give enough info in my original note ... I'm playing with the
idea of writing a sort of DIY database application. Sort of two steps
beyond a spreadsheet and two steps behind AppleWorks. Simple data
storage (and, ideally relational links between tables) user-defind
searches and reporting capability.

So, one user may create many databases, and I'd like a cheap, easy
storage solution into which I can add my own metadata, report and sorts.

Will
 >> Stay informed about: ObjC SQLite wrapper ??? 
Back to top
Login to vote
Chris Hanson

External


Since: Apr 30, 2004
Posts: 82



(Msg. 7) Posted: Sun Jan 27, 2008 7:21 pm
Post subject: Re: ObjC SQLite wrapper ??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2008-01-27 12:09:11 -0800, Ima Pseudonym said:

> Thanks for the suggestion, I hadn't seen that it was possible to do
> that. But it's probably not a good solution for me.
>
> I didn't give enough info in my original note ... I'm playing with the
> idea of writing a sort of DIY database application. Sort of two steps
> beyond a spreadsheet and two steps behind AppleWorks. Simple data
> storage (and, ideally relational links between tables) user-defind
> searches and reporting capability.

Nothing prevents you from doing this using Core Data.

Specifically, you don't have to design a static data model for an
application using the Xcode design tools. An NSManagedObjectModel is
just an object, like any other object, and it has NSEntityDescription
instances which in turn have NSPropertyDescription instances that
describe a specific model.

Instead of using SQLite directly and reinventing the wheel, as your
users design a particular database you could just generate a model for
them behind the scenes. NSManagedObjectModel supports keyed NSCoding,
so you could even encode the model and stick it in the metadata for the
NSPersistentStore that represents a particular document; that way, each
document would carry the current version of its model with it.

-- Chris
 >> Stay informed about: ObjC SQLite wrapper ??? 
Back to top
Login to vote
Ima Pseudonym

External


Since: Jan 26, 2008
Posts: 13



(Msg. 8) Posted: Sun Jan 27, 2008 8:51 pm
Post subject: Re: ObjC SQLite wrapper ??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hail

In article , Chris Hanson
wrote:

> Nothing prevents you from doing this using Core Data.
>
> Specifically, you don't have to design a static data model for an
> application using the Xcode design tools. An NSManagedObjectModel is
> just an object, like any other object, and it has NSEntityDescription
> instances which in turn have NSPropertyDescription instances that
> describe a specific model.
>
> Instead of using SQLite directly and reinventing the wheel, as your
> users design a particular database you could just generate a model for
> them behind the scenes. NSManagedObjectModel supports keyed NSCoding,
> so you could even encode the model and stick it in the metadata for the
> NSPersistentStore that represents a particular document; that way, each
> document would carry the current version of its model with it.


OK thanks. You've pretty much talked me out of the whole project ...

I'm not too experienced in Cocoa yet, and I don't know anything about
SQLite either. Therefore I'm not ready to jump into the middle of a Core
Data project without any background at all in KVO or bindings or the
backing data storage methodology.

I'll take some more time and do more groundwork (i.e. one piece at a
time) for a while until I'm ready for the combined challenge Smile

Thanks to all for the advice.

Will
 >> Stay informed about: ObjC SQLite wrapper ??? 
Back to top
Login to vote
Simon Slavin1

External


Since: May 16, 2004
Posts: 543



(Msg. 9) Posted: Wed Jan 30, 2008 11:04 pm
Post subject: Re: ObjC SQLite wrapper ??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> On 2008-01-27 12:09:11 -0800, Ima Pseudonym said:
>
> > Thanks for the suggestion, I hadn't seen that it was possible to do
> > that. But it's probably not a good solution for me.
> >
> > I didn't give enough info in my original note ... I'm playing with the
> > idea of writing a sort of DIY database application. Sort of two steps
> > beyond a spreadsheet and two steps behind AppleWorks. Simple data
> > storage (and, ideally relational links between tables) user-defind
> > searches and reporting capability.

The best SQLite Cocoa framework I found was developed by Blackhole Media:

http://www.blackholemedia.com/code/

scroll down to the entry for 'SQLDatabase 0.1'.

The database works fine as planned but it's for SQLite versions before 3.
You'll need to update this for version 3 of SQLite and this is done mostly
by adding a '3' to the end of SQLite function calls. Once you've got the
(included) demo application working, using the framework is trivial.

Simon.
--
http://www.hearsay.demon.co.uk
 >> Stay informed about: ObjC SQLite wrapper ??? 
Back to top
Login to vote
Ima Pseudonym

External


Since: Jan 26, 2008
Posts: 13



(Msg. 10) Posted: Wed Jan 30, 2008 11:04 pm
Post subject: Re: ObjC SQLite wrapper ??? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hail

In article ,
Simon Slavin
wrote:

>
> The best SQLite Cocoa framework I found was developed by Blackhole Media:
>
> http://www.blackholemedia.com/code/
>
> scroll down to the entry for 'SQLDatabase 0.1'.
>
> The database works fine as planned but it's for SQLite versions before 3.
> You'll need to update this for version 3 of SQLite and this is done mostly
> by adding a '3' to the end of SQLite function calls. Once you've got the
> (included) demo application working, using the framework is trivial.

Thank you, Simon, I found that during the extensive Googling which I did
before asking here.

You may also be interested by QuickLite 1.5.6 at
<http://www.webbotech.com/> which is already adapted to use SQLite 3.2.2.

I had some performance problems when I tried to parachute in the latest
version (3.5.4), though, and I don't know SQLite well enough to
uderstand why Sad

Will
 >> Stay informed about: ObjC SQLite wrapper ??? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
GUI wrapper for command line application - Hi, I'm trying to write a GUI wrapper for a command line application and am following Apple's Moriarity example. Launching the command line app works fine as long as I put it anywhere *but* the GUI application bundle. If I put it in the bundle (as I..

Embedding SQLite into a framework - I was wondering if there are any people in the group that could help me compile SQLite into a framework that I couyld easily link to from any application I wish to incorporate a database. As of now I don't have much experience with SQLite. I have managed...

Python and ObjC - Someone knows how can i read the output from Python? i'm writing a simple python shell, but i'm not able to get the ouptut from PyRun_SimpleString(). Please Help me Wezzy

headers with both objc & c++ - Hi all - I'm stuck trying to use my platform independent C++ "engine" code with Objective-C. Here is the problem: In my C++ class I need to have a member variable that references an Obj. C class. (objClass in below short example) How...

Objc Nubie: Errors Errors Errors - I've been toying with learning ObjC/Cocoa for sometime and finally got over the hump of "brackets vs. braces" but am wondering why my little test throws so many warnings when run: // gcc FileTest.m -o FileTest -ObjC -framework Cocoa #includ...
   Macintosh computer (Home) -> Programmer Help All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]