airbyte.caches.generic
A Generic SQL Cache implementation.
1# Copyright (c) 2023 Airbyte, Inc., all rights reserved. 2"""A Generic SQL Cache implementation.""" 3 4from __future__ import annotations 5 6from overrides import overrides 7 8from airbyte.caches.base import CacheBase 9 10 11class GenericSQLCacheConfig(CacheBase): 12 """Allows configuring 'sql_alchemy_url' directly.""" 13 14 sql_alchemy_url: str 15 16 @overrides 17 def get_sql_alchemy_url(self) -> str: 18 """Returns a SQL Alchemy URL.""" 19 return self.sql_alchemy_url
12class GenericSQLCacheConfig(CacheBase): 13 """Allows configuring 'sql_alchemy_url' directly.""" 14 15 sql_alchemy_url: str 16 17 @overrides 18 def get_sql_alchemy_url(self) -> str: 19 """Returns a SQL Alchemy URL.""" 20 return self.sql_alchemy_url
Allows configuring 'sql_alchemy_url' directly.
@overrides
def
get_sql_alchemy_url(self) -> str:
17 @overrides 18 def get_sql_alchemy_url(self) -> str: 19 """Returns a SQL Alchemy URL.""" 20 return self.sql_alchemy_url
Returns a SQL Alchemy URL.
Inherited Members
- pydantic.main.BaseModel
- BaseModel
- Config
- dict
- json
- parse_obj
- parse_raw
- parse_file
- from_orm
- construct
- copy
- schema
- schema_json
- validate
- update_forward_refs