Skip to content

Commit

Permalink
Dump to db
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Jun 5, 2024
1 parent 586483d commit e64f6f4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions operators/derive/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from . import to_dp, to_es, to_mapbox, to_sitemap, from_curation, autocomplete
from . import to_dp, to_es, to_mapbox, to_sitemap, from_curation, autocomplete, to_sql

from srm_tools.logger import logger

Expand All @@ -11,9 +11,9 @@ def operator(*_):
to_dp.operator()
autocomplete.operator()
to_es.operator()
to_sql.operator()
to_mapbox.operator()
to_sitemap.operator()
# to_sql.operator()

logger.info('Finished Derive Data Flow')

Expand Down
8 changes: 8 additions & 0 deletions operators/derive/to_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ def dump_to_sql_flow():
dict(
cards={
'resource-name': 'cards',
'indexes_fields': [
['service_name'],
['organization_id'],
['organization_kind'],
['branch_city'],
['national_service'],
['card_id'],
],
}
), engine='env://DATASETS_DATABASE_URL'
),
Expand Down

0 comments on commit e64f6f4

Please sign in to comment.