Add Json write Postgres tests

This commit is contained in:
2025-04-05 21:55:40 -04:00
parent 120a59ff7f
commit 5e5dbd3b80
3 changed files with 814 additions and 2 deletions

View File

@@ -771,8 +771,10 @@ module Json =
/// <param name="docId">The ID of the document to retrieve</param>
/// <param name="sqlProps">The <c>SqlProps</c> to use to execute the query</param>
[<CompiledName "WriteById">]
let writeById<'TKey> tableName (writer: StreamWriter) (docId: 'TKey) sqlProps =
byId tableName docId sqlProps |> writer.Write
let writeById<'TKey> tableName (writer: StreamWriter) (docId: 'TKey) sqlProps = backgroundTask {
let! json = byId tableName docId sqlProps
do! writer.WriteAsync json
}
/// <summary>Retrieve JSON documents matching JSON field comparisons (<c>-&gt;&gt; =</c>, etc.)</summary>
/// <param name="tableName">The table from which documents should be retrieved (may include schema)</param>