File size: 374 Bytes
7781557
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import os
from dotenv import load_dotenv

load_dotenv()

db_type = os.getenv("DB_TYPE")


if db_type == "mongodb":
    from .database_mongodb import get_user_by_username, create_user, save_file, get_user_files
else:
    from .database_dynamodb import get_user_by_username, create_user, save_file, get_user_files
    
get_user_by_username
create_user
save_file
get_user_files