On Wednesday, 7 May 2014 at 08:52:04 UTC, Robert Schadek via
Digitalmars-d-learn wrote:
On 05/07/2014 08:21 AM, Jack via Digitalmars-d-learn wrote:
First off a Disclaimer: I'm a noob and still learning. Please
don't bash me like some forums.

Now to the questions: I'm searching for a quick and easy way to
integrate SQLite3 in my application. I came across the
etc.c.sqlite3 and the DSQLite
library(https://github.com/bioinfornatics/DSQLite).

Thinking that the C bindings is more documented I tried learning
that. Though I can't understand the arguements of the callback
function.

extern(C) int callback(
void* NotUsedAtAll, // Null variable
int argc, // What?
char** results, // Results?
char** columnNames //Column Names?

){

for(int i = 0; i<argc; i++){
     writeln(results);
     getchar();
}

I've been reading through many explanations about this and I
understand why the callback is needed but I can't seem to
understand how to really use the callback function. Can someone
provide a brief explanation or just point me in the right
direction?
maybe
http://forum.dlang.org/thread/[email protected]
this is something for you

Is it bad when I only understand a small portion of the code?
Jokes aside, I guess this proves I'm getting ahead of myself.
Thanks for the article.

On Wednesday, 7 May 2014 at 07:19:32 UTC, Oleg wrote:
On Wednesday, 7 May 2014 at 06:21:10 UTC, Jack wrote:

void* NotUsedAtAll, // Null variable
int argc, // What?
char** results, // Results?
char** columnNames //Column Names?

You can read about this agruments on
http://www.sqlite.org/c3ref/exec.html

Thank you for the link. I think I got it covered for now.

Reply via email to