Use sql batch to optimize

This commit is contained in:
WQY\qiong
2023-03-16 08:30:04 +08:00
parent 1d2ac09c92
commit 04a58bb864
29 changed files with 145 additions and 105 deletions

View File

@@ -48,8 +48,8 @@ def inp_in_control(section: list[str]) -> ChangeSet:
return ChangeSet()
def inp_in_control_new(name: str, line: str) -> None:
write(name, f"insert into controls (line) values ('{line}');")
def inp_in_control_new(line: str) -> str:
return f"insert into controls (line) values ('{line}');"
def inp_out_control(name: str) -> list[str]: