isOpen

4 views
Skip to first unread message

vanea voda

unread,
Mar 1, 2011, 4:54:20 PM3/1/11
to pldatabase
Hello, I'm new into this group, my question is about verify if the
PLSqliteDatabase object is opened once, I need to verify that±
Concret exemple!
I have PLSqliteDatabse object into AppDelegate class, and I want use
this object in anywhere , but i don't retain if I open databese or
not... I need to verify if my database is opened and check, if it is
safe to use.
One method like that.


@interface PLSqliteDatabase()
- (BOOL)isOpen;
@end
THX

Landon Fuller

unread,
Mar 2, 2011, 10:35:27 AM3/2/11
to pldat...@googlegroups.com

There is an existing method that provides this:
-[PLDatabase goodConnection];

isOpen might be a better name :)

Cheers,
Landon

voda vanea

unread,
Mar 2, 2011, 5:22:36 PM3/2/11
to pldat...@googlegroups.com
Thx, but goodConnection I red is for verify if your connection is OK(Have a driver for SQLITE connection), but not verify if your Database is opened!
But Thx! 
If you say is do same work about i write, I know now for futer!


--
You received this message because you are subscribed to the Google Groups "pldatabase" group.
To post to this group, send email to pldat...@googlegroups.com.
To unsubscribe from this group, send email to pldatabase+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pldatabase?hl=en.


Reply all
Reply to author
Forward
0 new messages