Gjsify LogoGjsify Logo

This structure represents a table of view's column, its contents must not be modified.

record

Hierarchy

  • MetaTableColumn

Index

Constructors

Properties

column_name: string

the column's name

field
column_type: string

the column's DBMS's type

field
default_value: string

the column's default value, represented as a valid SQL value (surrounded by simple quotes for strings, ...), or %NULL if column has no default value

field
gtype: GType<unknown>

the detected column's #GType

field
nullok: boolean

tells if the column can be %NULL

field
pkey: boolean

tells if the column is part of a primary key

field
name: string

Methods

  • get_attribute(attribute: string): any
  • Get the value associated to a named attribute.

    Attributes can have any name, but Libgda proposes some default names, see this section.

    Parameters

    • attribute: string

      attribute name as a string

    Returns any

  • Set the value associated to a named attribute.

    Attributes can have any name, but Libgda proposes some default names, see this section. If there is already an attribute named attribute set, then its value is replaced with the new value, except if value is %NULL, in which case the attribute is removed.

    Warning: attribute is not copied, if it needs to be freed when not used anymore, then destroy should point to the functions which will free it (typically g_free()). If attribute does not need to be freed, then destroy can be %NULL.

    Parameters

    • attribute: string

      attribute name as a static string

    • value: any

      a #GValue, or %NULL

    • destroy: GLib.DestroyNotify

      function called when attribute has to be freed, or %NULL

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method