D money data type compatible with postgresql money

2018-11-17 Thread Václav Kozák via Digitalmars-d-learn
Hello, I have a column of type money in my database. I need to pull the data from the db in my vibe.d backend, but it can't handle such data type. How can I do it? Should I use some library (which?)? Thanks.

How do I use null in a struct?

2018-11-10 Thread Václav Kozák via Digitalmars-d-learn
I'm making a Rest API with vibe.d and I have a struct User. Sometimes I need to return only a few of the fields. So for example: return User(1, null, "John", null, null, ...); If I do this, an error occurs: cannot implicitly convert expression null of type typeof(null) to ... Thanks.