(
self, sequence: schema.Sequence, use_schema: bool = True
)
| 8092 | return collation_name |
| 8093 | |
| 8094 | def format_sequence( |
| 8095 | self, sequence: schema.Sequence, use_schema: bool = True |
| 8096 | ) -> str: |
| 8097 | name = self.quote(sequence.name) |
| 8098 | |
| 8099 | effective_schema = self.schema_for_object(sequence) |
| 8100 | |
| 8101 | if ( |
| 8102 | not self.omit_schema |
| 8103 | and use_schema |
| 8104 | and effective_schema is not None |
| 8105 | ): |
| 8106 | name = self.quote_schema(effective_schema) + "." + name |
| 8107 | return name |
| 8108 | |
| 8109 | def format_label( |
| 8110 | self, label: Label[Any], name: Optional[str] = None |