# Path: spanner_orm/admin/update.py
# class MigrationUpdate(abc.ABC):
# class NoUpdate(MigrationUpdate):
# class SchemaUpdate(MigrationUpdate, abc.ABC):
# class CreateTable(SchemaUpdate):
# class DropTable(SchemaUpdate):
# class AddColumn(SchemaUpdate):
# class DropColumn(SchemaUpdate):
# class AlterColumn(SchemaUpdate):
# class CreateIndex(SchemaUpdate):
# class DropIndex(SchemaUpdate):
# class ExecutePartitionedDml(MigrationUpdate):
#   def execute(self) -> None:
#   def execute(self) -> None:
#   def ddl(self) -> str:
#   def execute(self) -> None:
#   def validate(self) -> None:
#   def __init__(self, model_: Type[model.Model]):
#   def ddl(self) -> str:
#   def validate(self) -> None:
#   def _validate_parent(self) -> None:
#   def _validate_primary_keys(self) -> None:
#   def __init__(self, table_name: str):
#   def ddl(self) -> str:
#   def __init__(self, table_name: str, column_name: str, field_: field.Field):
#   def ddl(self) -> str:
#   def validate(self) -> None:
#   def __init__(self, table_name: str, column_name: str):
#   def ddl(self) -> str:
#   def validate(self) -> None:
#   def __init__(self, table_name: str, column_name: str, field_: field.Field):
#   def ddl(self) -> str:
#   def validate(self) -> None:
#   def __init__(self,
#                table_name: str,
#                index_name: str,
#                columns: Iterable[str],
#                interleaved: Optional[str] = None,
#                null_filtered: bool = False,
#                unique: bool = False,
#                storing_columns: Optional[Iterable[str]] = None):
#   def ddl(self) -> str:
#   def validate(self) -> None:
#   def _validate_columns(self, model_: Type[model.Model]) -> None:
#   def _validate_parent(self, model_: Type[model.Model]) -> None:
#   def __init__(self, table_name: str, index_name: str):
#   def ddl(self) -> str:
#   def validate(self) -> None:
#   def __init__(self, dml: str):
#   def execute(self) -> None:
# def model_creation_ddl(model_: Type[model.Model]) -> List[str]:


from typing import Callable, Optional
from spanner_orm.admin import update
# Copyright 2019 Google LLC
#
# 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
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# 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.
"""Holds information about a specific migration."""




def no_update_callable() -> update.MigrationUpdate:
  return update.NoUpdate()


class Migration:
  """Holds information about a specific migration."""

  def __init__(
      self,
      migration_id: str,
      prev_migration_id: Optional[str],
      upgrade: Optional[Callable[[], update.MigrationUpdate]] = None,

# Path: spanner_orm/admin/update.py
# class MigrationUpdate(abc.ABC):
# class NoUpdate(MigrationUpdate):
# class SchemaUpdate(MigrationUpdate, abc.ABC):
# class CreateTable(SchemaUpdate):
# class DropTable(SchemaUpdate):
# class AddColumn(SchemaUpdate):
# class DropColumn(SchemaUpdate):
# class AlterColumn(SchemaUpdate):
# class CreateIndex(SchemaUpdate):
# class DropIndex(SchemaUpdate):
# class ExecutePartitionedDml(MigrationUpdate):
#   def execute(self) -> None:
#   def execute(self) -> None:
#   def ddl(self) -> str:
#   def execute(self) -> None:
#   def validate(self) -> None:
#   def __init__(self, model_: Type[model.Model]):
#   def ddl(self) -> str:
#   def validate(self) -> None:
#   def _validate_parent(self) -> None:
#   def _validate_primary_keys(self) -> None:
#   def __init__(self, table_name: str):
#   def ddl(self) -> str:
#   def __init__(self, table_name: str, column_name: str, field_: field.Field):
#   def ddl(self) -> str:
#   def validate(self) -> None:
#   def __init__(self, table_name: str, column_name: str):
#   def ddl(self) -> str:
#   def validate(self) -> None:
#   def __init__(self, table_name: str, column_name: str, field_: field.Field):
#   def ddl(self) -> str:
#   def validate(self) -> None:
#   def __init__(self,
#                table_name: str,
#                index_name: str,
#                columns: Iterable[str],
#                interleaved: Optional[str] = None,
#                null_filtered: bool = False,
#                unique: bool = False,
#                storing_columns: Optional[Iterable[str]] = None):
#   def ddl(self) -> str:
#   def validate(self) -> None:
#   def _validate_columns(self, model_: Type[model.Model]) -> None:
#   def _validate_parent(self, model_: Type[model.Model]) -> None:
#   def __init__(self, table_name: str, index_name: str):
#   def ddl(self) -> str:
#   def validate(self) -> None:
#   def __init__(self, dml: str):
#   def execute(self) -> None:
# def model_creation_ddl(model_: Type[model.Model]) -> List[str]:


# Path: spanner_orm/admin/migration.py
from typing import Callable, Optional
from spanner_orm.admin import update

# Copyright 2019 Google LLC
#
# 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
#
#     https://www.apache.org/licenses/LICENSE-2.0
#
# 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.
"""Holds information about a specific migration."""




def no_update_callable() -> update.MigrationUpdate:
  return update.NoUpdate()


class Migration:
  """Holds information about a specific migration."""

  def __init__(
      self,
      migration_id: str,
      prev_migration_id: Optional[str],
      upgrade: Optional[Callable[[], update.MigrationUpdate]] = None,

      downgrade: Optional[Callable[[], update.MigrationUpdate]] = None,