Toggle Menu
Prev Up Next

# `langchain_postgres.checkpoint`.CheckpointSerializer

class langchain_postgres.checkpoint.CheckpointSerializer

  A serializer for serializing and deserializing objects to and from bytes.

  Methods

  `__init__`() |
  `dumps`(obj) | Serialize an object to bytes.
  `loads`(data) | Deserialize an object from bytes.

  __init__()
  abstract dumps(obj: Checkpoint) → bytes

    Serialize an object to bytes.

    Parameters

      obj (Checkpoint) –

    Return type

      bytes

  abstract loads(data: bytes) → Checkpoint

    Deserialize an object from bytes.

    Parameters

      data (bytes) –

    Return type

      Checkpoint