// Path: src/main/java/liquibase/ext/spanner/ICloudSpanner.java
// public interface ICloudSpanner extends Database {
// }


import liquibase.database.Database;
import liquibase.datatype.DataTypeInfo;
import liquibase.datatype.DatabaseDataType;
import liquibase.datatype.LiquibaseDataType;
import liquibase.datatype.core.UnknownType;
import liquibase.ext.spanner.ICloudSpanner;
/**
 * Copyright 2021 Google LLC
 *
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * <p>
 * https://www.apache.org/licenses/LICENSE-2.0
 *
 * <p>
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
package liquibase.ext.spanner.datatype;


/**
 * ARRAY<BYTES(len)> needs special handling because it contains a length parameter that is not at
 * the end of the type definition.
 */
@DataTypeInfo(name = "array<bytes>", aliases = {"java.sql.Types.ARRAY", "java.lang.String[]"},
    minParameters = 1, maxParameters = 1, priority = LiquibaseDataType.PRIORITY_DATABASE)
public class ArrayOfBytesSpanner extends UnknownType {
  public ArrayOfBytesSpanner() {
    super("ARRAY<BYTES>", 1, 1);
  }

  @Override
  public boolean supports(Database database) {
// Path: src/main/java/liquibase/ext/spanner/ICloudSpanner.java
// public interface ICloudSpanner extends Database {
// }


// Path: src/main/java/liquibase/ext/spanner/datatype/ArrayOfBytesSpanner.java
import liquibase.database.Database;
import liquibase.datatype.DataTypeInfo;
import liquibase.datatype.DatabaseDataType;
import liquibase.datatype.LiquibaseDataType;
import liquibase.datatype.core.UnknownType;
import liquibase.ext.spanner.ICloudSpanner;

/**
 * Copyright 2021 Google LLC
 *
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * <p>
 * https://www.apache.org/licenses/LICENSE-2.0
 *
 * <p>
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
package liquibase.ext.spanner.datatype;


/**
 * ARRAY<BYTES(len)> needs special handling because it contains a length parameter that is not at
 * the end of the type definition.
 */
@DataTypeInfo(name = "array<bytes>", aliases = {"java.sql.Types.ARRAY", "java.lang.String[]"},
    minParameters = 1, maxParameters = 1, priority = LiquibaseDataType.PRIORITY_DATABASE)
public class ArrayOfBytesSpanner extends UnknownType {
  public ArrayOfBytesSpanner() {
    super("ARRAY<BYTES>", 1, 1);
  }

  @Override
  public boolean supports(Database database) {
    return database instanceof ICloudSpanner;