Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Structs PostgresColumnDescription

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
module juptune.postgres.protocol.connection;

struct PostgresColumnDescription
{
    /++ ENUMS ++/
    
    /// What wire format the value will be in. 
    enum Format : byte
    {
        ///
        FAILSAFE = cast(byte)-1, 
        ///
        text = cast(byte)0, 
        ///
        binary = cast(byte)1
    }
    
    /++ VARIABLES ++/
    
    /// If applicable, the attribute number of this column from within a table. Otherwise 0. 
    ushort columnAttributeNumber;
    /// The data type stored by this column. 
    PostgresDataTypeOid dataType;
    /// Some data types have additional modifiers which are expressed via this field on a per-datatype basis. 
    int dataTypeModifier;
    /// The exact amount of bytes taken up by this data type (I believe when in its binary format). A value < 0 indicates a variable length type. 
    short dataTypeSize;
    /// How the value of this column is transferred over the wire. 
    PostgresColumnDescription.Format format;
    /// The name of the column. This will almost always be provided as an internal slice into PostgresProtocol 's buffer, so please perform a full copy of the memory within the slice** rather than a by-value copy of just the slice itself, if the name needs to be persisted. 
    const char[] nameDoNotCopy;
    /// If applicable, the object ID of the table this column belongs to. Otherwise 0. 
    int tableObjectId;
}

Documentation

Contains information about a particular column. This represents either a column in a table, or a column within a query's return result.

Enums

Name Description
Format

What wire format the value will be in.

Variables

Name Description
columnAttributeNumber

If applicable, the attribute number of this column from within a table. Otherwise 0.

dataType

The data type stored by this column.

dataTypeModifier

Some data types have additional modifiers which are expressed via this field on a per-datatype basis.

dataTypeSize

The exact amount of bytes taken up by this data type (I believe when in its binary format). A value < 0 indicates a variable length type.

format

How the value of this column is transferred over the wire.

nameDoNotCopy

The name of the column. This will almost always be provided as an internal slice into PostgresProtocol's buffer, so please perform a full copy of the memory within the slice** rather than a by-value copy of just the slice itself, if the name needs to be persisted.

tableObjectId

If applicable, the object ID of the table this column belongs to. Otherwise 0.