import { Database } from "./database" ; import { SessionService } from "../session/session-service/session.service" ; /**
 * Provider of Database service for the Angular dependency injection.
 *
 * This depends on the SessionService that is set up
 * (which in turn considers the app-config.json to switch between an in-memory database and a synced persistent database).
 */ export let databaseServiceProvider = { provide : Database , useFactory : function ( _sessionService ) { return _sessionService . getDatabase ( ) ; } , deps : [ SessionService ] , } ;