Configures the default connection to localhost, using the driver defaults (except for row_factory)
()
| 254 | |
| 255 | |
| 256 | def default(): |
| 257 | """ |
| 258 | Configures the default connection to localhost, using the driver defaults |
| 259 | (except for row_factory) |
| 260 | """ |
| 261 | |
| 262 | try: |
| 263 | conn = get_connection() |
| 264 | if conn.session: |
| 265 | log.warning("configuring new default connection for cqlengine when one was already set") |
| 266 | except: |
| 267 | pass |
| 268 | |
| 269 | register_connection('default', hosts=None, default=True) |
| 270 | |
| 271 | log.debug("cqlengine connection initialized with default session to localhost") |
| 272 | |
| 273 | |
| 274 | def set_session(s): |
nothing calls this directly
no test coverage detected