MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / _table_id

Function _table_id

NLP/Text2SQL-BASELINE/text2sql/utils/linking_utils.py:377–391  ·  view source on GitHub ↗

Args: db (TYPE): NULL col (TYPE): NULL Returns: TODO Raises: NULL

(db, col)

Source from the content-addressed store, hash-verified

375
376
377def _table_id(db, col):
378 """
379
380 Args:
381 db (TYPE): NULL
382 col (TYPE): NULL
383
384 Returns: TODO
385
386 Raises: NULL
387 """
388 if col == 0:
389 return None
390 else:
391 return db.columns[col].table.id
392
393
394def _foreign_key_id(db, col):

Callers 2

_match_foreign_keyFunction · 0.85
build_relation_matrixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected