Hi,
I am trying to write a sqlite resultset wrapper class for the iPhone, and I would like to be able to dynamically call sqlite3_column_int
or sqlite3_column_text
?
For example, in my fetchAll
method, I would like to not know what exact data i'm returning, I just want to return it.
My goal is to have a class that doesn't care what data you have in the database, it gets you what you want, and it doesn't need to worry about the type of data.
I was thinking of using performSelector
but i'm not sure how that would work.
How would I design such a class to make it easier for clients of the class to interact with sqlite
?
Thanks!