remove_postgres_storage: Remove PostgreSQL storage

View source: R/Storage.R

remove_postgres_storageR Documentation

Remove PostgreSQL storage

Description

Drops the GitStats schema (with all tables and metadata) from the PostgreSQL database, closes the connection, and reverts storage to the default in-memory local backend. Errors if no PostgreSQL backend is currently set.

Usage

remove_postgres_storage(gitstats)

Arguments

gitstats

A GitStats object.

Value

A GitStats object (invisibly).

Examples

## Not run: 
  my_gitstats <- create_gitstats() |>
    set_postgres_storage(
      dbname = "my_database",
      host = "localhost",
      user = "postgres",
      password = "secret"
    )
  remove_postgres_storage(my_gitstats)

## End(Not run)

GitStats documentation built on April 23, 2026, 9:10 a.m.