def default_database_options():
 if DATABASE.ENGINE.get().endswith('oracle'):
  return {'threaded': True}
 elif DATABASE.ENGINE.get().endswith('sqlite3'):
  return {'timeout': 30}
 else:
  return {}

def default_database_options ( ) : if DATABASE . ENGINE . get ( ) . endswith ( 'oracle' ) : return { 'threaded' : True } elif DATABASE . ENGINE . get ( ) . endswith ( 'sqlite3' ) : return { 'timeout' : 30 } else : return { }
database type dependent options .