2017-06-27 09:55:57 -05:00
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
//
|
|
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
|
|
//
|
2019-01-02 04:24:12 -06:00
|
|
|
// Copyright (C) 2013 - 2019, The pgAdmin Development Team
|
2017-06-27 09:55:57 -05:00
|
|
|
// This software is released under the PostgreSQL Licence
|
|
|
|
//
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2017-09-18 04:08:02 -05:00
|
|
|
import PropTypes from 'prop-types';
|
2017-06-27 09:55:57 -05:00
|
|
|
|
|
|
|
let historyDetail =
|
2017-09-18 04:08:02 -05:00
|
|
|
PropTypes.shape({
|
|
|
|
query: PropTypes.string,
|
|
|
|
start_time: PropTypes.instanceOf(Date),
|
|
|
|
status: PropTypes.bool,
|
|
|
|
total_time: PropTypes.string,
|
|
|
|
row_affected: PropTypes.int,
|
|
|
|
message: PropTypes.string,
|
2017-06-27 09:55:57 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
let historyCollectionClass =
|
2017-09-18 04:08:02 -05:00
|
|
|
PropTypes.shape({
|
|
|
|
historyList: PropTypes.array.isRequired,
|
|
|
|
onChange: PropTypes.func.isRequired,
|
2017-06-27 09:55:57 -05:00
|
|
|
});
|
|
|
|
|
2018-07-05 05:38:43 -05:00
|
|
|
let sqlEditorPrefObj =
|
|
|
|
PropTypes.shape({
|
|
|
|
sql_font_size: PropTypes.string.isRequired,
|
|
|
|
});
|
|
|
|
|
2017-06-27 09:55:57 -05:00
|
|
|
export default {
|
|
|
|
historyDetail,
|
|
|
|
historyCollectionClass,
|
2018-07-05 05:38:43 -05:00
|
|
|
sqlEditorPrefObj,
|
2017-09-18 04:08:02 -05:00
|
|
|
};
|