Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenRaiser/PaperFlow
/ init_db
Function
init_db
scripts/collect_papers_by_date.py:44–48 ·
view source on GitHub ↗
初始化数据库连接
()
Source
from the content-addressed store, hash-verified
42
43
44
def
init_db() -> sqlite3.Connection:
45
""
"初始化数据库连接"
""
46
conn = sqlite3.connect(DB_PATH)
47
conn.row_factory = sqlite3.Row
48
return
conn
49
50
51
def
paper_exists(conn: sqlite3.Connection, arxiv_id: str) -> bool:
Callers
1
collect_papers
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected