Support distinct versions of types we know how to convert.
This commit is contained in:
@@ -256,6 +256,12 @@ func createParseStmt*(t, value: NimNode): NimNode =
|
||||
|
||||
else: error "Cannot parse column with unknown generic instance type: " & $t.getTypeInst
|
||||
|
||||
elif t.typeKind == ntyDistinct:
|
||||
result = quote do:
|
||||
block:
|
||||
let tmp: `t` = `value`
|
||||
tmp
|
||||
|
||||
elif t.typeKind == ntyRef:
|
||||
|
||||
if $t.getTypeInst == "JsonNode":
|
||||
|
Reference in New Issue
Block a user