def recreate_database(self):
     settings.CLICKHOUSE_REPLICATION = False
     sync_execute(f"DROP DATABASE {settings.CLICKHOUSE_DATABASE} SYNC")
     sync_execute(f"CREATE DATABASE {settings.CLICKHOUSE_DATABASE}")
     create_clickhouse_tables(0)
Esempio n. 2
0
 def recreate_database(self):
     sync_execute(f"DROP DATABASE {CLICKHOUSE_DATABASE} SYNC")
     sync_execute(f"CREATE DATABASE {CLICKHOUSE_DATABASE}")
     create_clickhouse_tables(0)
 def recreate_database(self, create_tables=True):
     sync_execute(f"DROP DATABASE {settings.CLICKHOUSE_DATABASE} SYNC")
     sync_execute(f"CREATE DATABASE {settings.CLICKHOUSE_DATABASE}")
     if create_tables:
         create_clickhouse_tables(0)