On Monday, 10 March 2025 at 21:39:39 UTC, Sergey wrote:
Did you try d2sqlite3?
I looked at it, and it only documented struct operations. Given
that I now understand the problem at hand, I'd rather go with a
fix here than start over.
Thanks,
Andy
On Thursday, 6 March 2025 at 23:45:01 UTC, Andy Valencia wrote:
Is there a sqlite3 interface library which can correctly read
into instances? sqlite3-d will let me compile with a class,
but it segv's when run. ddbc seems to support only structs,
and I can use it to punch in one value at a tim
On Monday, 10 March 2025 at 22:55:03 UTC, Ali Çehreli wrote:
You would expect that to be provided by one of the following:
https://dlang.org/phobos/std_traits.html
https://dlang.org/spec/traits.html
But in this case it's the "is expression":
https://dlang.org/spec/expression.html#is_exp
On 3/10/25 2:31 PM, Andy Valencia wrote:
> Is there a static-if
> which can tell if a type is of a struct, as opposed to a class?
[...]
> Something like:
>
>> static if (__traits(isClass, T)) {
>>...
>> } else if (__traits(isStruct, T)) {
>>...
>> } else {
>>(failure)
>> }
>
> Thank
On Thursday, 6 March 2025 at 23:45:01 UTC, Andy Valencia wrote:
Is there a sqlite3 interface library which can correctly read
into instances? sqlite3-d will let me compile with a class,
but it segv's when run. ddbc seems to support only structs,
and I can use it to punch in one value at a tim
Thanks for quick help. So this is related to Thread-local
storage, which as I found it now, well documented, expected, and
works as designed.
On Monday, 2 March 2015 at 07:20:49 UTC, Vitalie Colosov wrote:
Now it all makes sense. Thank you.
Maybe it would make also some sense if I would have gotten some
kind of exception trying to access the variable which was not
populated by the running thread, instead of successfully
getting empt
On 3/2/2015 4:20 PM, Vitalie Colosov wrote:
Now it all makes sense. Thank you.
Maybe it would make also some sense if I would have gotten some kind of
exception trying to access the variable which was not populated by the
running thread, instead of successfully getting empty string... so this
wou
Now it all makes sense. Thank you.
Maybe it would make also some sense if I would have gotten some
kind of exception trying to access the variable which was not
populated by the running thread, instead of successfully getting
empty string... so this would be observed easily during the
testing,
On 03/01/2015 09:47 PM, Vitalie Colosov wrote:
> global variable
A module-scope variable is thread-local by-default. Every thread will
have a copy of that variable.
If you want to share data, you must define it as 'shared' (or __gshared).
> which was populated in main() function
In that cas
After some analysis, it looks like related to the code parts
which I have omitted "for simplicity", and in particular - I was
creating the query using global variable which was populated in
main() function. It appears that when I spawn the function, it
does not see the value of the global varia
On Thursday, 8 May 2014 at 12:47:55 UTC, Arjan wrote:
On Thursday, 8 May 2014 at 11:48:14 UTC, Jack wrote:
On Thursday, 8 May 2014 at 11:07:06 UTC, Arjan wrote:
On Thursday, 8 May 2014 at 10:29:16 UTC, Jack wrote:
On Wednesday, 7 May 2014 at 19:03:34 UTC, Arjan wrote:
On Wednesday, 7 May 2014
On Thursday, 8 May 2014 at 11:48:14 UTC, Jack wrote:
On Thursday, 8 May 2014 at 11:07:06 UTC, Arjan wrote:
On Thursday, 8 May 2014 at 10:29:16 UTC, Jack wrote:
On Wednesday, 7 May 2014 at 19:03:34 UTC, Arjan wrote:
On Wednesday, 7 May 2014 at 06:21:10 UTC, Jack wrote:
First off a Disclaimer: I
On Thursday, 8 May 2014 at 11:07:06 UTC, Arjan wrote:
On Thursday, 8 May 2014 at 10:29:16 UTC, Jack wrote:
On Wednesday, 7 May 2014 at 19:03:34 UTC, Arjan wrote:
On Wednesday, 7 May 2014 at 06:21:10 UTC, Jack wrote:
First off a Disclaimer: I'm a noob and still learning. Please
don't bash me li
On Thursday, 8 May 2014 at 10:29:16 UTC, Jack wrote:
On Wednesday, 7 May 2014 at 19:03:34 UTC, Arjan wrote:
On Wednesday, 7 May 2014 at 06:21:10 UTC, Jack 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 fo
On Wednesday, 7 May 2014 at 19:03:34 UTC, Arjan wrote:
On Wednesday, 7 May 2014 at 06:21:10 UTC, Jack 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 appl
On Wednesday, 7 May 2014 at 06:21:10 UTC, Jack 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
On Wednesday, 7 May 2014 at 19:03:34 UTC, Arjan wrote:
On Wednesday, 7 May 2014 at 06:21:10 UTC, Jack 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 appl
On Wednesday, 7 May 2014 at 06:21:10 UTC, Jack 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.
maybe:
https://github.com/buggins/ddbc/wiki ?
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 e
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
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
You're right about the finalize, but changing the line to:
rc=sqlite3_prepare(db, toStringz(sql), cast(int)sql.length +
1000, &stmt, null);
results in the compile time error:
sqlitetest.d(39): Error: function etc.c.sqlite3.sqlite3_prepare
(sqlite3* db, const(char)* zSql, int nByte, sqli
This doesn't seem to be a D problem. I re-implemented it in C and got
the same error.
On 09/18/2013 02:00 PM, Charles Hixson wrote:
I'm trying to use SQLite3 in D, but am getting a segmentation fault
when I attempt to replace the exec statement with a prepare
statement. What am I doing wrong
On Wednesday, 18 September 2013 at 21:31:00 UTC, Charles Hixson
wrote:
I'm trying to use SQLite3 in D, but am getting a segmentation
fault when I attempt to replace the exec statement with a
prepare statement. What am I doing wrong?
If the prepare statement is commented out, and the exec
sta
25 matches
Mail list logo