Skip to content
Snippets Groups Projects

Develop

Closed Huihui, Jonathan requested to merge develop into main
2 files
+ 7
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -73,7 +73,7 @@ class MultiDatabase:
@staticmethod
def _get_mixin_for_type(
db_type: str,
) -> Optional[Type[Union["PostgresMixin", "MSSQLMixin", "InfluxMixin"]]]:
) -> Optional[Type[Union['PostgresMixin', 'MSSQLMixin', 'InfluxMixin', 'SQLiteMixin']]]:
db_type = db_type.lower()
if db_type.startswith("postgres") or db_type.startswith("pg"):
from common.mixins.postgres import PostgresMixin
@@ -87,6 +87,11 @@ class MultiDatabase:
from common.mixins.influx import InfluxMixin
return InfluxMixin
if db_type.startswith('sqlite'):
from common.mixins.sqlite import SQLiteMixin
return SQLiteMixin
# add more database Mixins here as they become available
return None
Loading