(self, identity_options: IdentityOptions)
| 7330 | raise exc.UnsupportedCompilationError(self, type(drop)) |
| 7331 | |
| 7332 | def get_identity_options(self, identity_options: IdentityOptions) -> str: |
| 7333 | text = [] |
| 7334 | if identity_options.increment is not None: |
| 7335 | text.append("INCREMENT BY %d" % identity_options.increment) |
| 7336 | if identity_options.start is not None: |
| 7337 | text.append("START WITH %d" % identity_options.start) |
| 7338 | if identity_options.minvalue is not None: |
| 7339 | text.append("MINVALUE %d" % identity_options.minvalue) |
| 7340 | if identity_options.maxvalue is not None: |
| 7341 | text.append("MAXVALUE %d" % identity_options.maxvalue) |
| 7342 | if identity_options.nominvalue is not None: |
| 7343 | text.append("NO MINVALUE") |
| 7344 | if identity_options.nomaxvalue is not None: |
| 7345 | text.append("NO MAXVALUE") |
| 7346 | if identity_options.cache is not None: |
| 7347 | text.append("CACHE %d" % identity_options.cache) |
| 7348 | if identity_options.cycle is not None: |
| 7349 | text.append("CYCLE" if identity_options.cycle else "NO CYCLE") |
| 7350 | return " ".join(text) |
| 7351 | |
| 7352 | def visit_create_sequence(self, create, prefix=None, **kw): |
| 7353 | text = "CREATE SEQUENCE " |
no test coverage detected