FileDO

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

Primary key: element_oid: int

schema FileDO {
  @primary element_oid: int,
  relative_path: string,
  extension: string,
  name: string,
  number_of_lines_oid: int
}

FileDO::getNumberOfLinesOid

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

FileDO::getExtension

/**
* @brief gets the extension of this element.
* @return string
*/
  • Parameter self: FileDO
  • Return string
pub fn getExtension(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: PythonDB) -> *FileDO;

FileDO::getRelativePath

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