cmdbox.app.features.cli.audit package

Submodules

cmdbox.app.features.cli.audit.audit_base module

class cmdbox.app.features.cli.audit.audit_base.AuditBase(appcls, ver, language: str = None)[source]

Bases: ResultEdgeFeature

DT_FMT = ['%Y/%m/%d %H:%M', '%Y/%m/%d %H', '%Y/%m/%d', '%Y/%m', '%Y', '%m', '%u']
TBL_COLS = ['audit_type', 'clmsg_id', 'clmsg_date', 'clmsg_src', 'clmsg_title', 'clmsg_user', 'clmsg_body', 'clmsg_tag', 'svmsg_id', 'svmsg_date']
get_context(data_dir: Path, logger: Logger, pg_enabled: bool, pg_host: str, pg_port: int, pg_user: str, pg_password: str, pg_dbname: str) → Any[source]
get_option()[source]

この機能のオプションを返します

Returns:

オプション

Return type:

Dict[str, Any]

initdb(data_dir: Path, logger: Logger, pg_enabled: bool, pg_host: str, pg_port: int, pg_user: str, pg_password: str, pg_dbname: str) → None[source]

データベースを初期化します

Parameters:
  • data_dir (Path) -- データディレクトリ

  • logger (logging.Logger) -- ロガー

  • pg_enabled (bool) -- PostgreSQLを使用するかどうか

  • pg_host (str) -- PostgreSQLホスト

  • pg_port (int) -- PostgreSQLポート

  • pg_user (str) -- PostgreSQLユーザー名

  • pg_password (str) -- PostgreSQLパスワード

  • pg_dbname (str) -- PostgreSQLデータベース名

Module contents