Defined in src/localdb/index.ts:122
Properties
Private
#dbs
Defined in src/localdb/index.ts:138
Private
#device Manager
Defined in src/localdb/index.ts:124
Private
#emitter
Defined in src/localdb/index.ts:129
Private
#host Device
Defined in src/localdb/index.ts:123
Private
#slot Locks
#slot
Locks
: Map < string , Mutex > = ...
Defined in src/localdb/index.ts:134
Private
#status Emitter
Defined in src/localdb/index.ts:125
off
off
: ( ( eventName
: string | symbol , listener
: ( ( ... args
: any [] ) => void ) ) => EventEmitter ) = ...
Type declaration
( eventName: string | symbol , listener: ( ( ... args: any [] ) => void ) ) : EventEmitter
Parameters
eventName: string | symbol
listener: ( ( ... args: any [] ) => void )
( ... args: any [] ) : void
Returns void
Defined in src/localdb/index.ts:154
on
Type declaration
< P , T > ( this: T , event: P , listener: ( ( ... args: ListenerType < DatabaseEvents [ P ] > ) => void ) ) : T
Returns T
( event: typeof assignmentCompatibilityHack , listener: ( ( ... args: any [] ) => any ) ) : void
Parameters
listener: ( ( ... args: any [] ) => any )
( ... args: any [] ) : any
Returns any
Returns void
Defined in src/localdb/index.ts:153
once
Type declaration
< P , T > ( this: T , event: P , listener: ( ( ... args: ListenerType < DatabaseEvents [ P ] > ) => void ) ) : T
Returns T
( event: typeof assignmentCompatibilityHack , listener: ( ( ... args: any [] ) => any ) ) : void
Parameters
listener: ( ( ... args: any [] ) => any )
( ... args: any [] ) : any
Returns any
Returns void
Defined in src/localdb/index.ts:155
Methods
Private
#handle Device Removed
#handle Device Removed( device: Device ) : void
Returns void
Defined in src/localdb/index.ts:168
disconnect For Device
disconnect For Device( device: Device ) : void
Returns void
Defined in src/localdb/index.ts:160
preload
preload( ) : Promise < void >
Returns Promise < void >
Defined in src/localdb/index.ts:281
The local database is responsible for syncing the remote rekordbox databases of media slots on a device into in-memory sqlite databases.
This service will attempt to ensure the in-memory databases for each media device that is connected to a CDJ is locally kept in sync. Fetching the database for any media slot of it's not already cached.