Gjsify LogoGjsify Logo

Hierarchy

  • QuarkList

Index

Constructors

  • Creates a new #GdaQuarkList, which is a set of key->value pairs, very similar to GLib's GHashTable, but with the only purpose to make easier the parsing and creation of data source connection strings.

    Returns Gda.QuarkList

Properties

name: string

Methods

  • addFromString(string: string, cleanup: boolean): void
  • string must be a semi-colon separated list of "<key>=<value>" strings (for example "DB_NAME=notes;USERNAME=alfred"). Each key and value must respect the RFC 1738 recommendations: the <>"#%{}|^~[]';/?:=`& and space characters are replaced by "%%ab" where ab is the hexadecimal number corresponding to the character (for example the "DB_NAME=notes;USERNAME=al%%20fred" string will specify a username as "al fred"). If this formalism is not respected, then some unexpected results may occur.

    Some corner cases for any string part (delimited by the semi-colon): If it does not respect the "<key>=<value>" format then it will be ignored. Only the 1st equal character is used to separate the key from the value part (which means any other equal sign will be part of the value)

    Adds new key->value pairs from the given string. If cleanup is set to %TRUE, the previous contents will be discarded before adding the new pairs.

    Parameters

    • string: string

      a string.

    • cleanup: boolean

      whether to cleanup the previous content or not.

    Returns void

  • clear(): void
  • Removes all strings in the given #GdaQuarkList.

    Returns void

  • find(name: string): string
  • Searches for the value identified by name in the given #GdaQuarkList. For protected values (authentification data), don't forget to call gda_quark_list_protect_values() when you don't need them anymore (when needed again, they will be unmangled again).

    Parameters

    • name: string

      the name of the value to search for.

    Returns string

  • foreach(func: HFunc): void
  • Calls the given function for each of the key/value pairs in qlist. The function is passed the key and value of each pair, and the given user_data parameter. qlist may not be modified while iterating over it.

    Parameters

    • func: HFunc

      the function to call for each key/value pair

    Returns void

  • free(): void
  • Releases all memory occupied by the given #GdaQuarkList.

    Returns void

  • protectValues(): void
  • Call this function to get rid of the clear version of all the values stored in qlist. If qlist is %NULL, then this function does nothing.

    Returns void

  • remove(name: string): void
  • Removes an entry from the #GdaQuarkList, given its name.

    Parameters

    • name: string

      an entry name.

    Returns void

  • Creates a new #GdaQuarkList, which is a set of key->value pairs, very similar to GLib's GHashTable, but with the only purpose to make easier the parsing and creation of data source connection strings.

    Returns Gda.QuarkList

  • Creates a new #GdaQuarkList given a string.

    string must be a semi-colon separated list of "<key>=<value>" strings (for example "DB_NAME=notes;USERNAME=alfred"). Each key and value must respect the RFC 1738 recommendations: the <>"#%{}|^~[]';/?:=`& and space characters are replaced by "%%ab" where ab is the hexadecimal number corresponding to the character (for example the "DB_NAME=notes;USERNAME=al%%20fred" string will specify a username as "al fred"). If this formalism is not respected, then some unexpected results may occur.

    Parameters

    • string: string

      a string.

    Returns Gda.QuarkList

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