(cls, descriptor)
| 22 | Connection.current = self |
| 23 | @classmethod |
| 24 | def get(cls, descriptor): |
| 25 | if isinstance(descriptor, Connection): |
| 26 | cls.current = descriptor |
| 27 | elif descriptor: |
| 28 | conn = cls.connections.get(descriptor) or \ |
| 29 | cls.connections.get(descriptor.lower()) |
| 30 | if conn: |
| 31 | cls.current = conn |
| 32 | else: |
| 33 | cls.current = Connection(descriptor) |
| 34 | if cls.current: |
| 35 | return cls.current |
| 36 | else: |
| 37 | raise Exception(cls.tell_format()) |
| 38 | @classmethod |
| 39 | def assign_name(cls, engine): |
| 40 | core_name = '%s@%s' % (engine.url.username, engine.url.database) |
no test coverage detected