From b4b28bb9abe53a27b215a4e7c6147b320e8048f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Julliand?= Date: Tue, 20 Jan 2026 22:42:48 +0100 Subject: [PATCH] Added table field to ColumnMetadata To be merged after https://github.com/Mapepire-IBMi/mapepire-server/pull/131 Adds the `table` field added in https://github.com/Mapepire-IBMi/mapepire-server/pull/131 to the column metadata. Adds missing fields added earlier to column metadata. --- .../mapepire_ibmi/types/ColumnMetadata.cs | 54 ++++++++++++++++--- 1 file changed, 47 insertions(+), 7 deletions(-) diff --git a/io/github/mapepire_ibmi/types/ColumnMetadata.cs b/io/github/mapepire_ibmi/types/ColumnMetadata.cs index 39323e4..67ba7bd 100644 --- a/io/github/mapepire_ibmi/types/ColumnMetadata.cs +++ b/io/github/mapepire_ibmi/types/ColumnMetadata.cs @@ -39,6 +39,36 @@ public class ColumnMetadata { [JsonPropertyName("scale")] public int Scale { get; set; } + /** + * Indicates whether the designated column is automatically numbered. + */ + [JsonPropertyName("autoIncrement")] + public bool AutoIncrement { get; set; } + + /** + * Indicates the nullability of values in the designated column. + */ + [JsonPropertyName("nullable")] + public int Nullable { get; set; } + + /** + * Indicates whether the designated column is definitely not writable. + */ + [JsonPropertyName("readOnly")] + public bool ReadOnly { get; set; } + + /** + * Indicates whether it is possible for a write on the designated column to succeed. + */ + [JsonPropertyName("writeable")] + public bool Writeable { get; set; } + + /** + * The column's table name. + */ + [JsonPropertyName("table")] + public String? Table { get; set; } + /** * Construct a new ColumnMetadata instance. */ @@ -50,19 +80,29 @@ public ColumnMetadata() { * Construct a new ColumnMetadata instance. * * @param displaySize The display size of the column. - * @param label The label of the column. - * @param name The name of the column. - * @param type The type of the column. - * @param precision The precision/length of the column. - * @param scale The scale of the column. + * @param label The label of the column. + * @param name The name of the column. + * @param type The type of the column. + * @param precision The precision/length of the column. + * @param scale The scale of the column. + * @param autoIncrement Indicates whether the designated column is automatically numbered. + * @param nullable Indicates the nullability of values in the designated column. + * @param readOnly Indicates whether the designated column is definitely not writable. + * @param writeable Indicates whether it is possible for a write on the designated column to succeed. + * @param table The column's table name. */ - public ColumnMetadata(int displaySize, String label, String name, String type, int precision, int scale) { + public ColumnMetadata(int displaySize, String label, String name, String type, int precision, int scale, bool autoIncrement, int nullable, bool readOnly, bool writeable, String table) { this.DisplaySize = displaySize; this.Label = label; this.Name = name; this.Type = type; this.Precision = precision; this.Scale = scale; + this.AutoIncrement = autoIncrement; + this.Nullable = nullable; + this.ReadOnly = readOnly; + this.Writeable = writeable; + this.Table = table; } @@ -70,4 +110,4 @@ public ColumnMetadata(int displaySize, String label, String name, String type, i } -} \ No newline at end of file +}