-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e720adb
commit ac36f8e
Showing
3 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from enum import Enum | ||
|
||
from singleton_decorator import singleton | ||
|
||
from optimus.io.abstract_driver import AbstractDriver | ||
from optimus.io.properties import DriverProperties | ||
|
||
|
||
@singleton | ||
class RedisDriver(AbstractDriver): | ||
"""Redis Database""" | ||
|
||
def properties(self) -> Enum: | ||
return DriverProperties.REDIS | ||
|
||
def url(self, *args, **kwarg) -> str: | ||
# Redis pyspark do not use and url | ||
pass | ||
|
||
def table_names_query(self, *args, **kwargs) -> str: | ||
pass | ||
|
||
def table_name_query(self, *args, **kwargs) -> str: | ||
pass | ||
|
||
def count_query(self, *args, **kwargs) -> str: | ||
pass |