22 lines
574 B
JavaScript
22 lines
574 B
JavaScript
/////////////////////////////////////////////////////////////
|
|
//
|
|
// pgAdmin 4 - PostgreSQL Tools
|
|
//
|
|
// Copyright (C) 2013 - 2025, The pgAdmin Development Team
|
|
// This software is released under the PostgreSQL Licence
|
|
//
|
|
//////////////////////////////////////////////////////////////
|
|
|
|
import {
|
|
SchemaState,
|
|
} from '../../../pgadmin/static/js/SchemaView/SchemaState';
|
|
|
|
export function initializeSchemaWithData(schema, data) {
|
|
const state = schema.state = new SchemaState(
|
|
schema, null, null, 'create', false, null
|
|
);
|
|
state.initData = data;
|
|
state.data = data;
|
|
}
|
|
|