Continue AI features and improve protocol support
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import asyncio
|
||||
|
||||
import aiomysql
|
||||
|
||||
from core.schemas import mc_s
|
||||
@@ -41,7 +43,10 @@ async def create_index():
|
||||
for name, schema in schemas.items():
|
||||
schema_types = ", ".join([f"{k} {v}" for k, v in schema.items()])
|
||||
|
||||
create_query = f"create table if not exists {name}({schema_types}) engine='columnar'"
|
||||
create_query = (
|
||||
f"create table if not exists {name}({schema_types}) "
|
||||
"engine='columnar'"
|
||||
)
|
||||
log.info(f"Schema types {create_query}")
|
||||
await cur.execute(create_query) # SQLi
|
||||
except aiomysql.Error as e:
|
||||
|
||||
Reference in New Issue
Block a user