Add pattern api and test

This commit is contained in:
WQY\qiong
2022-10-22 12:55:16 +08:00
parent c1b99bc7eb
commit bb1d772eaa
7 changed files with 123 additions and 13 deletions

View File

@@ -3,17 +3,20 @@ from .connection import g_conn_dict as conn
from .operation import *
_NODE = "_node"
_LINK = "_link"
_CURVE = "_curve"
_PATTERN = "_pattern"
_NODE = '_node'
_LINK = '_link'
_CURVE = '_curve'
_PATTERN = '_pattern'
JUNCTION = "junction"
RESERVOIR = "reservoir"
TANK = "tank"
PIPE = "pipe"
PUMP = "pump"
VALVE = "valve"
JUNCTION = 'junction'
RESERVOIR = 'reservoir'
TANK = 'tank'
PIPE = 'pipe'
PUMP = 'pump'
VALVE = 'valve'
PATTERN = 'pattern'
CURVE = 'curve'
def _get_from(name: str, id: str, base_type: str) -> Row | None: