FileDO

/**
* @brief DO class: A file.
*/

Primary key: oid: int

schema FileDO {
  @primary oid: int,
  pkg_oid: int,
  name: string,
  md5_sum: string,
  sha256_sum: string
}

FileDO::getMd5Sum

/**
* @brief gets the md5 sum of this element.
* @return string
*/
  • Parameter self: FileDO
  • Return string
pub fn getMd5Sum(self: FileDO) -> string;

FileDO::getName

/**
* @brief gets the name of this element.
* @return string
*/
  • Parameter self: FileDO
  • Return string
pub fn getName(self: FileDO) -> string;

FileDO::__all__

Data constraint method.

pub fn __all__(db: GoDB) -> *FileDO;

FileDO::getSha256Sum

/**
* @brief gets the sha256 sum of this element.
* @return string
*/
  • Parameter self: FileDO
  • Return string
pub fn getSha256Sum(self: FileDO) -> string;

FileDO::getPkgOid

/**
* @brief gets the pkg oid of this element.
* @return int
*/
  • Parameter self: FileDO
  • Return int
pub fn getPkgOid(self: FileDO) -> int;