
Story: 2008529 Task: 41688 Signed-off-by: Bin Yang <bin.yang@windriver.com> Change-Id: Ib276520605cc624a9976f804a1721ba2c5909403
13 lines
326 B
Python
13 lines
326 B
Python
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
|