
Story: 2008529 Task: 41923 Signed-off-by: Bin Yang <bin.yang@windriver.com> Change-Id: If2237b94fada714e87f5e58e4563cbcea8fe5aff
19 lines
417 B
Python
19 lines
417 B
Python
#
|
|
# Copyright (c) 2021 Wind River Systems, Inc.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
#
|
|
|
|
from notificationclientsdk.repository.dbcontext import DbContext
|
|
|
|
defaults = {
|
|
'dbcontext': None
|
|
}
|
|
|
|
def init_default_dbcontext(sqlalchemy_conf):
|
|
global defaults
|
|
DbContext.init_dbcontext(sqlalchemy_conf)
|
|
default_dbcontext = DbContext()
|
|
defaults['dbcontext'] = default_dbcontext
|
|
return default_dbcontext
|