Tim Glasgow
2 years ago
1 changed files with 27 additions and 0 deletions
@ -0,0 +1,27 @@ |
|||||
|
import {systemRepo, userRepo, scoreRepo} from './dbInit'; |
||||
|
|
||||
|
class realmAPI { |
||||
|
constructor(){ |
||||
|
if (realmDB === null) { |
||||
|
realmDB = this; |
||||
|
} |
||||
|
|
||||
|
return realmDB; |
||||
|
} |
||||
|
|
||||
|
getAllSystemValues() { |
||||
|
return systemRepo.getAllSystemValues(); |
||||
|
} |
||||
|
|
||||
|
createSystemValue(key, value) { |
||||
|
systemRepo.createSystemValue(key, value); |
||||
|
} |
||||
|
|
||||
|
deleteSystemValue(key) { |
||||
|
systemRepo.deleteSystemValue(key); |
||||
|
} |
||||
|
|
||||
|
getSystemValue(key) { |
||||
|
return systemRepo.getSystemKeyValue(key); |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue