Skip to content

Commit 2a9cb92

Browse files
add missing specs in NocoDBClient interface
1 parent 7532b75 commit 2a9cb92

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

nocodb/nocodb.py

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from abc import ABC, abstractmethod
2-
2+
from typing import Optional
33

44
"""
55
License MIT
@@ -89,3 +89,48 @@ def table_row_list(
8989
self, project: NocoDBProject, table: str, filter_obj=None, params=None
9090
) -> dict:
9191
pass
92+
93+
@abstractmethod
94+
def table_row_list(
95+
self,
96+
project: NocoDBProject,
97+
table: str,
98+
filter_obj: Optional[WhereFilter] = None,
99+
params: Optional[dict] = None,
100+
) -> dict:
101+
pass
102+
103+
@abstractmethod
104+
def table_row_create(
105+
self, project: NocoDBProject, table: str, body: dict
106+
) -> dict:
107+
pass
108+
109+
@abstractmethod
110+
def table_row_detail(
111+
self, project: NocoDBProject, table: str, row_id: int
112+
) -> dict:
113+
pass
114+
115+
@abstractmethod
116+
def table_row_update(
117+
self, project: NocoDBProject, table: str, row_id: int, body: dict
118+
) -> dict:
119+
pass
120+
121+
@abstractmethod
122+
def table_row_delete(
123+
self, project: NocoDBProject, table: str, row_id: int
124+
) -> int:
125+
pass
126+
127+
@abstractmethod
128+
def table_row_nested_relations_list(
129+
self,
130+
project: NocoDBProject,
131+
table: str,
132+
relation_type: str,
133+
row_id: int,
134+
column_name: str,
135+
) -> dict:
136+
pass

0 commit comments

Comments
 (0)