Logo

diepvries

Data Vault framework in Python

Navigation

  • Philosophy
  • Glossary
  • Naming conventions
  • Security
  • Installation
  • Tutorial
  • Advanced topics
  • Development
  • API documentation
    • diepvries
      • FieldDataType
      • FieldRole
      • FixedPrefixLoggerAdapter
      • TableType
      • deserializers
      • template_sql
      • data_vault_load
      • driving_key_field
      • effectivity_satellite
      • field
      • hub
      • link
        • Link
          • Link.loading_order
          • Link.parent_hub_names
          • Link.sql_load_statement
          • Link.sql_placeholders
      • role_playing_hub
      • satellite
      • table
  • Contributing
  • Changelog

Related Topics

  • Documentation overview
    • diepvries
      • diepvries package
        • Previous: diepvries.hub module
        • Next: diepvries.role_playing_hub module

Quick search

diepvries.link module¶

A link.

class diepvries.link.Link(schema, name, fields, *_args, **_kwargs)¶

Bases: DataVaultTable

A link.

property loading_order: int¶

Get loading order (links are the second tables to be loaded).

Returns:

Table loading order.

property parent_hub_names: List[str]¶

Get the list of parent hub names.

Returns:

Parent hub names.

property sql_load_statement: str¶

Get the SQL query to populate current link.

All needed placeholders are calculated, in order to match template SQL (check template_sql.hub_link_dml.sql).

Returns:

SQL query to load target link.

property sql_placeholders: Dict[str, str]¶

Link specific SQL placeholders.

These placeholders are used to format the Link loading query.

The results are joined with the results from super().sql_placeholders(), as all placeholders calculated in Table (parent class) are applicable in a Link.

Returns:

Link specific SQL placeholders.

©Picnic Technologies. | Powered by Sphinx 7.3.7 & Alabaster 0.7.16 | Page source