Class DdlTranslator (0.22.0)

public class DdlTranslator

Translates Cloud Spanner PostgreSQL DDL statements into PostgreSQL compatible DDL statements.

Inheritance

java.lang.Object > DdlTranslator

Static Methods

translate(String statement)

public static String translate(String statement)

Translates a Cloud Spanner PostgreSQL DDL statement into a compatible PostgreSQL DDL statement. This means that the following Cloud Spanner extensions are stripped:

  1. CREATE {TABLE|INDEX} ... INTERLEAVE IN PARENT
  2. CREATE TABLE ... TTL INTERVAL
  3. CREATE VIEW ... SQL SECURITY INVOKER
  4. CREATE CHANGE STREAM
Parameter
NameDescription
statementString
Returns
TypeDescription
String

Constructors

DdlTranslator()

public DdlTranslator()