2019-01-02 04:24:12 -06:00
|
|
|
/////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
//
|
2024-01-01 02:43:48 -06:00
|
|
|
// Copyright (C) 2013 - 2024, 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() {
|
2024-06-13 08:18:02 -05:00
|
|
|
return {...this.values};
|
2018-06-05 05:36:19 -05:00
|
|
|
}
|
|
|
|
}
|