public inbox for [email protected]  
help / color / mirror / Atom feed
From: Adrian Klaver <[email protected]>
To: Christophe Pettus <[email protected]>
Cc: [email protected]
Subject: Re: Overriding default adapters in psycopg
Date: Sun, 16 Nov 2025 09:56:03 -0800
Message-ID: <[email protected]> (raw)
In-Reply-To: <[email protected]>
References: <[email protected]>
	<[email protected]>
	<[email protected]>

On 11/16/25 09:43, Christophe Pettus wrote:
> 
> 
>> On Nov 16, 2025, at 09:30, Adrian Klaver <[email protected]> wrote:
>>
>> https://www.psycopg.org/psycopg3/docs/api/abc.html#psycopg.abc.Dumper.dump
>>
>> I believe it should be something like:
>>
>> psycopg.adapters.register_dumper(<some_python_object>, CyanJSONBDumper)
> 
> Thank you!

I tried my original suggestion of using:

https://www.psycopg.org/psycopg3/docs/basic/adapt.html#adapt-json

and it seems to work.

Which this issue:

https://github.com/psycopg/psycopg/pull/568

confirms should be the case.


-- 
Adrian Klaver
[email protected]






reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Overriding default adapters in psycopg
  In-Reply-To: <[email protected]>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox