mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
20 lines
574 B
JavaScript
20 lines
574 B
JavaScript
|
/////////////////////////////////////////////////////////////
|
||
|
//
|
||
|
// pgAdmin 4 - PostgreSQL Tools
|
||
|
//
|
||
|
// Copyright (C) 2013 - 2024, The pgAdmin Development Team
|
||
|
// This software is released under the PostgreSQL Licence
|
||
|
//
|
||
|
//////////////////////////////////////////////////////////////
|
||
|
|
||
|
import { SchemaState } from '../../../pgadmin/static/js/SchemaView/useSchemaState';
|
||
|
|
||
|
export function initializeSchemaWithData(schema, data) {
|
||
|
const state = schema.state = new SchemaState(
|
||
|
schema, null, null, 'create', false, null
|
||
|
);
|
||
|
state.initData = data;
|
||
|
state.data = data;
|
||
|
}
|
||
|
|