import { Application } from 'egg' ; import DB from '../lib/db/base' ; import DBFactory from '../lib/db/factory' ; const DBSymbol = Symbol ( 'Application#db' ) ; export default { get db ( ) : DB { return DBFactory ( ) ; } } ;