Package com.google.cloud.spanner.pgadapter.metadata (0.23.0)

Classes

CommandMetadataParser

Parses command metadata json files.

ConnectionMetadata

DescribeResult

DynamicCommandMetadata

DynamicCommandMetadata is a simple POJO for extracting commands which are user-definable and generated at run-time from a user-defined JSON. This class concerns with the population of those JSON objects onto more accessible formats for easier internal handling.

OptionsMetadata

Metadata extractor for CLI.

OptionsMetadata.Builder

Builder class for creating an instance of OptionsMetadata.

A default instance of this Builder will create a PGAdapter proxy server that:

  1. Accepts connections to any Cloud Spanner database. The database name must be given as a fully qualified database name in the PostgreSQL connection URL.
  2. Accepts connections on a dynamically assigned port. You can get the port that was assigned to the server after the server has started by calling ProxyServer#getLocalPort().
  3. Uses the default credentials in the current runtime environment.
  4. Listens for Unix domain socket connections on '/tmp'.

SendResultSetState

The state of a result after (a part of it) has been sent to the client.

User

User class for when proper auth gets added.

Enums

OptionsMetadata.DdlTransactionMode

OptionsMetadata.SslMode

OptionsMetadata.TextFormat

The PostgreSQL wire protocol can send data in both binary and text format. When using text format, the Server will normally send output back to the client using a format understood by PostgreSQL clients. If you are using the server with a text-only client that does not try to interpret the data that is returned by the server, such as for example psql, then it is advisable to use Cloud Spanner formatting. The server will then return all data in a format understood by Cloud Spanner.

The default format used by the server is TextFormat.