Skip to content

Commit d507aed

Browse files
committed
[feat] Added pipe to Datastore
1 parent 4295898 commit d507aed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/oqd_dataschema/datastore.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414

1515
# %%
1616

17+
from __future__ import annotations
18+
1719
import json
1820
import pathlib
1921
from typing import Any, Dict, Literal
@@ -218,5 +220,8 @@ def add(self, **groups):
218220

219221
self.update(**groups)
220222

223+
def pipe(self, func) -> Datastore:
224+
return func(self)
225+
221226

222227
# %%

0 commit comments

Comments
 (0)