2019-01-02 04:24:12 -06:00
|
|
|
/////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
//
|
2021-01-04 04:04:45 -06:00
|
|
|
// Copyright (C) 2013 - 2021, The pgAdmin Development Team
|
2019-01-02 04:24:12 -06:00
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////
|
|
|
|
|
2018-06-05 05:36:19 -05:00
|
|
|
export class FakeModel {
|
|
|
|
constructor() {
|
|
|
|
this.values = {};
|
|
|
|
}
|
|
|
|
|
|
|
|
set(key, value) {
|
|
|
|
this.values[key] = value;
|
|
|
|
}
|
|
|
|
|
|
|
|
get(key) {
|
|
|
|
return this.values[key];
|
|
|
|
}
|
|
|
|
|
|
|
|
unset(key) {
|
|
|
|
delete this.values[key];
|
|
|
|
}
|
|
|
|
|
|
|
|
toJSON() {
|
|
|
|
return Object.assign({}, this.values);
|
|
|
|
}
|
|
|
|
}
|