Skip to content

Instantly share code, notes, and snippets.

@vmarkovtsev
Created June 1, 2022 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vmarkovtsev/4f7f5a41b66c48eea2e66a991a4b3a18 to your computer and use it in GitHub Desktop.
Save vmarkovtsev/4f7f5a41b66c48eea2e66a991a4b3a18 to your computer and use it in GitHub Desktop.
dtype = np.dtype([("a", int), ("b", datetime64[s])], metadata={"blocks": True})
query = set_query_dtype("SELECT 777, '2022-01-01'::timestamp", dtype)
arr, nulls = await connection.fetch(query)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment