-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api-updates): update mappings (#25)
- Loading branch information
1 parent
ebd1854
commit 4fb4cd0
Showing
14 changed files
with
369 additions
and
176 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/usr/bin/env sh | ||
|
||
createdb -U mds test_mds | ||
createdb -U metadata_user test_metadata |
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,45 @@ | ||
from .redis_cache import redis_cache as redis_client | ||
|
||
|
||
async def init(hostname, port): | ||
await redis_client.init_cache(hostname, port) | ||
|
||
|
||
async def drop_all(): | ||
await redis_client.json_sets("commons", []) | ||
|
||
|
||
async def close(): | ||
await redis_client.close() | ||
|
||
|
||
async def get_status(): | ||
return await redis_client.get_status() | ||
|
||
|
||
async def update_metadata(*args): | ||
await redis_client.update_metadata(*args) | ||
|
||
|
||
async def get_commons_metadata(*args): | ||
return await redis_client.get_commons_metadata(*args) | ||
|
||
|
||
async def get_all_named_commons_metadata(*args): | ||
return await redis_client.get_all_named_commons_metadata(*args) | ||
|
||
|
||
async def get_commons_metadata_guid(*args): | ||
return await redis_client.get_commons_metadata_guid(*args) | ||
|
||
|
||
async def get_commons_attribute(*args): | ||
return await redis_client.get_commons_attribute(*args) | ||
|
||
|
||
async def get_commons(): | ||
return await redis_client.get_commons() | ||
|
||
|
||
async def get_all_metadata(*args): | ||
return await redis_client.get_all_metadata(*args) |
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
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
Oops, something went wrong.