This repository has been archived on 2026-03-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
datavaultgenerator-1.1.5/DataVaultGenerator/schema/entities/hub.yaml

59 lines
1.0 KiB
YAML

type: hub
name: Hub
displayname: Hub
namespace: model
schema:
# GeneratorEntity
name:
type: string
required: True
type:
type: string
required: True
subtype:
type: string
generate:
type: integer
allowed: [0,1]
extra:
type: [list, dict, string, integer]
description:
type: string
sql_pre_hook:
type: string
sql_post_hook:
type: string
# DataVaultEntity
layer:
type: string
dbentity:
schema: dbentity
# Specific
key:
type: string
key_treatment:
type: dict
schema:
trim:
type: string
allowed: ['left', 'right', 'both']
case:
type: string
allowed: ['upper', 'lower', 'keep']
roleof:
type: string
caseSesitive:
type: integer
allowed: [0,1]
# Attributes:
attributes: attributes
boilerplate: |
name: {unique_name}
type: hub
key: primary_key_name # Hashkey
description: 'optional description'
attributes:
- {name: 'businesskey1', type: 'nvarchar(200)'}