src.app.core.model.sql-result.model.ts Maven / Gradle / Ivy
The newest version!
/*
* SPDX-FileCopyrightText: 2017-2024 Enedis
*
* SPDX-License-Identifier: Apache-2.0
*
*/
import { Table } from './table.model';
export class Sqlresult {
constructor(public updatedRows?: number,
public error?: string,
public table?: Table) {
}
}
export function sqlResultFromObject(fromJsonObject: Object) {
return new Sqlresult(
fromJsonObject['updatedRows'],
fromJsonObject['error'],
fromJsonObject['table']
);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy