MCPcopy Create free account
hub / github.com/brimdata/super / create_pool

Method create_pool

python/superdb/superdb.py:38–45  ·  view source on GitHub ↗
(self, name, layout={'order': 'desc', 'keys': [['ts']]},
                    thresh=0)

Source from the content-addressed store, hash-verified

36 return None
37
38 def create_pool(self, name, layout={'order': 'desc', 'keys': [['ts']]},
39 thresh=0):
40 r = self.session.post(self.base_url + '/pool', json={
41 'name': name,
42 'layout': layout,
43 'thresh': thresh,
44 })
45 self.__raise_for_status(r)
46
47 def load(self, pool_name_or_id, data, branch_name='main',
48 commit_author=getpass.getuser(), commit_body=''):

Callers

nothing calls this directly

Calls 2

__raise_for_statusMethod · 0.95
postMethod · 0.80

Tested by

no test coverage detected