Export Database Tables to 'Parquet'
Overview
Tools for exporting 'PostgreSQL' tables to 'Parquet' files, with support for chunked writes, column type overrides, and timezone-aware timestamp handling. Includes functions for maintaining a local 'Parquet' data library sourced from 'WRDS' (Wharton Research Data Services), with update-checking based on table metadata, and archive management utilities for versioning local data files. See Gow and Ding (2024) "Empirical Research in Accounting: Tools and Methods" doi:10.1201/9781003456230.
- Added first-class WRDS credential helpers:
wrds_get_username(),wrds_conninfo(), andwrds_check_credentials(). - Added Parquet-first public helpers for schema/table listing and WRDS SQL exports:
db_schema_tables(),wrds_get_tables(),db_schema_to_pq(), andwrds_sql_to_pq(). - Added
pq_data_dir()to inspect or resolve the default Parquet repository directory. - Added
renamesupport todb_to_pq()andwrds_update_pq(). - Added
pkgdownsite configuration and workflow-oriented vignettes. - Added ADBC diagnostics and clearer SSL-related error messages for the optional ADBC PostgreSQL path.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK6 OK2026-06-03
Documentation
- Help pages
- 23 (1 internal)includes a package overview page
- Examples that run
- 50%11 run in a plain check · 11 never run
- Exported functions with examples
- 100%
- Documented parameters
- 95%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- not measured
- Median days to close, 50 most recently updated closed issues
- 50
- Median days to close, 50 most recently updated closed PRs
- not measured
Stars over time
Forks over time
Issues over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/iangow/db2pqr on 2026-10-11.
Dependencies
Code & Tests
People & History
- 0.0.4Latest2026-06-02 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-06-02
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 4.1.0
- Download size
- 46 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("db2pq")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.