(cfg, eng, ident)
| 61 | |
| 62 | @create_db.for_db("mysql", "mariadb") |
| 63 | def _mysql_create_db(cfg, eng, ident): |
| 64 | with eng.begin() as conn: |
| 65 | try: |
| 66 | _mysql_drop_db(cfg, conn, ident) |
| 67 | except Exception: |
| 68 | pass |
| 69 | |
| 70 | with eng.begin() as conn: |
| 71 | conn.exec_driver_sql( |
| 72 | "CREATE DATABASE %s CHARACTER SET utf8mb4" % ident |
| 73 | ) |
| 74 | conn.exec_driver_sql( |
| 75 | "CREATE DATABASE %s_test_schema CHARACTER SET utf8mb4" % ident |
| 76 | ) |
| 77 | conn.exec_driver_sql( |
| 78 | "CREATE DATABASE %s_test_schema_2 CHARACTER SET utf8mb4" % ident |
| 79 | ) |
| 80 | |
| 81 | |
| 82 | @configure_follower.for_db("mysql", "mariadb") |
nothing calls this directly
no test coverage detected