Re: How do I extract and convert datatypes from ResultRange

2019-08-26 Thread Anders S via Digitalmars-d-learn
On Monday, 26 August 2019 at 13:58:34 UTC, Olivier Pisano wrote: On Monday, 26 August 2019 at 13:49:21 UTC, Anders S wrote: [...] I don't have a compiler accessible right now, but according to https://dlang.org/phobos/std_variant.html : int i; if (row[2].peek!int !is null)

Re: How do I extract and convert datatypes from ResultRange

2019-08-26 Thread Olivier Pisano via Digitalmars-d-learn
On Monday, 26 August 2019 at 13:49:21 UTC, Anders S wrote: Hi guys, I'm trying to read a post of different datatypes from MariaDB table into another message and pass it on into a FIFO pipe to an other application. My code : string sql = "SELECT * FROM guirequest WHERE read_request =

How do I extract and convert datatypes from ResultRange

2019-08-26 Thread Anders S via Digitalmars-d-learn
Hi guys, I'm trying to read a post of different datatypes from MariaDB table into another message and pass it on into a FIFO pipe to an other application. My code : string sql = "SELECT * FROM guirequest WHERE read_request = -1;"; ResultRange range = conn.query(sql); Row row =