Click.DB

g Click.DB Click.DB GObject.Object GObject.Object GObject.Object->Click.DB

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add (root)

ensure_ownership ()

gc ()

get (index)

get_manifest (package, version)

get_manifest_as_string (package, version)

get_manifests (all_versions)

get_manifests_as_string (all_versions)

get_overlay ()

get_packages (all_versions)

get_path (package, version)

get_size ()

has_package_version (package, version)

maybe_remove (package, version)

read (db_dir)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

Name

Type

Flags

Short Description

overlay

str

r

overlay

size

int

r

size

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Click.DB(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Click.DBClass

classmethod new()
Return type:

Click.DB

add(root)
Parameters:

root (str) –

ensure_ownership()
Raises:

GLib.Error

gc()
Raises:

GLib.Error

get(index)
Parameters:

index (int) –

Raises:

GLib.Error

Return type:

Click.SingleDB

get_manifest(package, version)
Parameters:
  • package (str) –

  • version (str) –

Raises:

GLib.Error

Return type:

Json.Object

get_manifest_as_string(package, version)
Parameters:
  • package (str) –

  • version (str) –

Raises:

GLib.Error

Return type:

str

get_manifests(all_versions)
Parameters:

all_versions (bool) –

Raises:

GLib.Error

Return type:

Json.Array

get_manifests_as_string(all_versions)
Parameters:

all_versions (bool) –

Raises:

GLib.Error

Return type:

str

get_overlay()
Return type:

str

get_packages(all_versions)
Parameters:

all_versions (bool) –

Raises:

GLib.Error

Return type:

[Click.InstalledPackage]

get_path(package, version)
Parameters:
  • package (str) –

  • version (str) –

Raises:

GLib.Error

Return type:

str

get_size()
Return type:

int

has_package_version(package, version)
Parameters:
  • package (str) –

  • version (str) –

Return type:

bool

maybe_remove(package, version)
Parameters:
  • package (str) –

  • version (str) –

Raises:

GLib.Error

read(db_dir)
Parameters:

db_dir (str or None) –

Raises:

GLib.Error

Property Details

Click.DB.props.overlay
Name:

overlay

Type:

str

Default Value:

None

Flags:

READABLE

overlay

Click.DB.props.size
Name:

size

Type:

int

Default Value:

0

Flags:

READABLE

size