MCPcopy Create free account
hub / github.com/dbcli/mssql-cli / arg

Method arg

mssqlcli/packages/parseutils/meta.py:129–137  ·  view source on GitHub ↗
(name, typ, num)

Source from the content-addressed store, hash-verified

127 ]
128
129 def arg(name, typ, num):
130 num_args = len(args)
131 num_defaults = len(self.arg_defaults)
132 has_default = num + num_defaults >= num_args
133 default = (
134 self.arg_defaults[num - num_args + num_defaults] if has_default
135 else None
136 )
137 return ColumnMetadata(name, typ, [], default, has_default)
138
139 return [arg(name, typ, num) for num, (name, typ) in enumerate(args)]
140

Callers

nothing calls this directly

Calls 1

ColumnMetadataFunction · 0.85

Tested by

no test coverage detected