Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions piccolo/apps/migrations/commands/new.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import string
from dataclasses import dataclass
from itertools import chain
from types import ModuleType
from typing import Optional

import black
Expand Down Expand Up @@ -33,8 +32,6 @@
loader=jinja2.FileSystemLoader(searchpath=TEMPLATE_DIRECTORY),
)

MIGRATION_MODULES: dict[str, ModuleType] = {}

VALID_PYTHON_MODULE_CHARACTERS = string.ascii_lowercase + string.digits + "_"


Expand Down
3 changes: 0 additions & 3 deletions piccolo/apps/schema/commands/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,6 @@ class TableTriggers:
tablename: str
triggers: list[Trigger]

def get_column_triggers(self, column_name: str) -> list[Trigger]:
return [i for i in self.triggers if i.column_name == column_name]

def get_column_ref_trigger(
self, column_name: str, references_table: str
) -> Optional[Trigger]:
Expand Down
8 changes: 0 additions & 8 deletions piccolo/query/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,14 +356,6 @@ def returning(self, columns: Sequence[Column]):
self._returning = Returning(columns=list(columns))


@dataclass
class CountDelegate:
_count: bool = False

def count(self):
self._count = True


@dataclass
class AddDelegate:
_add: list[Table] = field(default_factory=list)
Expand Down