import Storage from '../Storage' ; import ChannelInflator from '../ChannelInflator' ; export async function tmpStorage ( inflator ) { let connectionUrl = process . env . DB_URL ; if ( ! connectionUrl ) { let filename = './tmp' ; connectionUrl = `sqlite://${ filename }` ; console . warn ( `DB_URL parameter is empty, using ${ connectionUrl }` ) ; } return Storage . build ( connectionUrl , inflator ) ; }