def __init__(self, catalog_dsn: str, zones: Dict[str, str]) -> None: self.arranger, self.provider = resolve_managers({ 'cataloguer_kind': 'schema', 'catalog_dsn': catalog_dsn, 'provisioner_kind': 'schema', 'provision_schema_zones': zones })
def __init__(self, catalog_path: str, zones: Dict[str, str], directory_template='__template__') -> None: directory_template = str(Path(zones['default']) / '__template__') self.arranger, self.provider = resolve_managers({ 'cataloguer_kind': 'json', 'catalog_path': catalog_path, 'provisioner_kind': 'directory', 'provision_template': directory_template, 'provision_directory_zones': zones })
def __init__(self, connection: SchemaConnection, zones: Dict[str, str]) -> None: self.arranger, self.provider = resolve_managers({ 'cataloguer_kind': 'schema', 'catalog_connection': connection, 'provisioner_kind': 'schema', 'provision_schema_zones': zones }) self.arranger.cataloguer.placeholder = '%s'
def __init__(self) -> None: self.arranger, self.provider = resolve_managers({})