diff --git a/database_generation.d b/database_generation.d index 1f8be3f..50ed1ba 100644 --- a/database_generation.d +++ b/database_generation.d @@ -50,6 +50,17 @@ struct Nullable(T) { } T toArsdJsvar() { return value; } + + string toString() { + import std.conv; + + if (isNull) { + return "Nullable.null"; + } + else { + return to!string(this.value); + } + } } struct Timestamp {