mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-09 23:54:09 -06:00
64 lines
1.4 KiB
JavaScript
64 lines
1.4 KiB
JavaScript
/////////////////////////////////////////////////////////////
|
|
//
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2013 - 2024, The pgAdmin Development Team
|
|
// This software is released under the PostgreSQL Licence
|
|
//
|
|
//////////////////////////////////////////////////////////////
|
|
|
|
import gettext from 'sources/gettext';
|
|
import BaseUISchema from 'sources/SchemaView/base_schema.ui';
|
|
|
|
export default class ActiveQuery extends BaseUISchema {
|
|
constructor(initValues) {
|
|
super({
|
|
...initValues,
|
|
});
|
|
|
|
}
|
|
|
|
get baseFields() {
|
|
return [
|
|
|
|
{
|
|
id: 'backend_type',
|
|
label: gettext('Backend type'),
|
|
type: 'text',
|
|
editable: true,
|
|
noEmpty: false,
|
|
readonly: true,
|
|
mode: ['properties'],
|
|
group: gettext('Details'),
|
|
},
|
|
{
|
|
id: 'query_start',
|
|
label: gettext('Query started at'),
|
|
type: 'text',
|
|
editable: false,
|
|
readonly: true,
|
|
group: gettext('Details'),
|
|
},
|
|
{
|
|
id: 'state_change',
|
|
label: gettext('Last state changed at'),
|
|
type: 'text',
|
|
editable: false,
|
|
readonly: true,
|
|
group: gettext('Details'),
|
|
},
|
|
{
|
|
id: 'query',
|
|
label: gettext('SQL'),
|
|
cell: 'string',
|
|
editable: false,
|
|
readonly: true,
|
|
type: 'sql',
|
|
group: gettext('Details'),
|
|
},
|
|
];
|
|
|
|
}
|
|
|
|
}
|