【Gerrit】查詢用戶數據信息


一、查詢Gerrit用戶數據表ACCOUNTS信息:

1.連接數據庫(gerrit.xxx.xxx->gerrit服務域名或IP)

ssh gerrit.xxx.xxx gerrit gsql

2.查詢用戶信息

select * from accounts where preferred_email like '%annie.xx%';

3.查詢結果顯示

registered_on              | full_name | preferred_email         | maximum_page_size | show_site_header | use_flash_clipboard | download_url | download_command | copy_self_on_email | date_format | time_format | relative_date_in_change_table | diff_view | size_bar_in_change_table | legacycid_in_change_table | review_category_strategy | mute_common_path_prefixes | inactive | account_id
 ---------------------------+-----------+-------------------------+-------------------+------------------+---------------------+--------------+------------------+--------------------+-------------+-------------+-------------------------------+-----------+--------------------------+---------------------------+--------------------------+---------------------------+----------+-----------
 2020-03-26 15:57:50.601+08 | XXX       | annie.xx@xxx.com | 25                | Y                | Y                   | ssh          | NULL             | N                  | NULL        | NULL        | N                             | NULL      | Y                        | N                         | NULL                     | Y                         | N        | 1001381
(1 row; 2 ms)

4.清除緩存

ssh -p 29418 gerrit.xxx.com gerrit flush-caches --all

5.查詢projects("${L_REGEX}"->匹配project)

ssh -p 29418 gerrit.xxx.com gerrit ls-projects --type CODE -r "${L_REGEX}"


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM