To test this I built gitgres, about 2,000 lines of C implementing the libgit2 git_odb_backend and git_refdb_backend interfaces against Postgres through libpq, plus roughly 200 lines of PL/pgSQL for the storage functions. libgit2 handles pack negotiation, delta resolution, ref advertisement, and the transport protocol while the backend reads and writes against the two tables, and a git remote helper (git-remote-gitgres) lets you add a Postgres-backed remote to any repo and push or clone with a normal git client that has no idea it’s talking to a database. There’s a Dockerfile in the repo if you want to try it out without building libgit2 and libpq from source.
Chris BaraniukTechnology Reporter,推荐阅读同城约会获取更多信息
。业内人士推荐im钱包官方下载作为进阶阅读
Copyright © 1997-2026 by www.people.com.cn all rights reserved。业内人士推荐heLLoword翻译官方下载作为进阶阅读
Фото: Konstantin Kokoshkin / Globallookpress.com
每年冬天工廠的天然氣供應會被切斷數日甚至數週;天氣較熱時則面臨停電。大城市的居民也經常得忍受住宅停電或飲用水遭到中斷。