Just a conclusion to this thread, I've been using the given snippet
with a minor modification with great success. The modification was
that single quotation marks had to be added around datetime.
class PGDateTime(TypeDecorator):
impl = DateTime
def literal_processor(self, dialect):
On Mon, Jun 17, 2019, at 12:02 PM, João Miguel Neves wrote:
> Hi,
>
> Ok, versioning adds a different requirement level, as it fails if the version
> being updated has changed. I was looking for a situation where updating 2
> keys inside a JSONB field wouldn't lose one of them. Using versionin
On Mon, Jun 17, 2019, at 12:02 PM, João Miguel Neves wrote:
> Hi,
>
> Ok, versioning adds a different requirement level, as it fails if the version
> being updated has changed. I was looking for a situation where updating 2
> keys inside a JSONB field wouldn't lose one of them. Using versioning
Hi,
Ok, versioning adds a different requirement level, as it fails if the
version being updated has changed. I was looking for a situation where
updating 2 keys inside a JSONB field wouldn't lose one of them. Using
versioning it raises an exception when writing one of them (which is better
than th