WIP: sdk, bug fixes, os support regression fix

This commit is contained in:
2022-08-23 21:36:13 +08:00
parent 751a442554
commit eaae297b49
25 changed files with 813 additions and 455 deletions
+1
View File
@@ -0,0 +1 @@
create table strtest(a: string, b: string);
+19 -1
View File
@@ -70,4 +70,22 @@ def remove_last(pattern : str, string : str, escape : Set[str] = set()) -> str:
return string
else:
return string[:idx] + string[idx+1:]
class _Counter:
def __init__(self, cnt):
self.cnt = cnt
def inc(self, cnt = 1):
self.cnt += cnt
cnt = self.cnt - cnt
return cnt
import re
ws = re.compile(r'\s+')
def add_dll_dir(dll: str):
import sys, os
if sys.version_info.major >= 3 and sys.version_info.minor >7 and os.name == 'nt':
os.add_dll_directory(dll)
else:
os.environ['PATH'] = os.path.abspath(dll) + os.pathsep + os.environ['PATH']