Skip to content

Commit

Permalink
jsonb support added
Browse files Browse the repository at this point in the history
  • Loading branch information
denizzzka committed Oct 16, 2017
1 parent 6817497 commit 7cb01e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,7 @@ private OidType[] retrieveArgsTypes(__Conn conn, string preparedStatementName)
return ret;
}

// Actually this is types what described in BSON specification
private immutable OidType[] argsSupportedTypes =
[
OidType.Bool,
Expand All @@ -966,9 +967,11 @@ private immutable OidType[] argsSupportedTypes =
OidType.Json
];

// Types what can be converted to BSON
private immutable OidType[] resultSupportedTypes = argsSupportedTypes ~
[
OidType.Numeric,
OidType.FixedString,
OidType.Jsonb,
//OidType.UUID
];

0 comments on commit 7cb01e9

Please sign in to comment.