File size: 653 Bytes
4327358
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import Knex from 'knex';

import { DataStore } from '../abc/DataStore';

export abstract class LocalStore extends DataStore {
  abstract init(sessionName?: string): Promise<void>;

  /**
   * Get the directory where all the engines and sessions are stored
   */
  abstract getBaseDirectory(): string;

  /**
   * Get the directory where the engine sessions are stored
   */
  abstract getEngineDirectory(): string;

  /**
   * Get the directory where the session data is stored
   */
  abstract getSessionDirectory(name: string): string;

  /**
   * Get the file path for a session
   */
  abstract getFilePath(session: string, file: string): string;
}