R/sample_catalog.R

Defines functions sample_catalog

Documented in sample_catalog

#' A example of how a connection hierarchy structure
#' @export
#'
#' @examples
#'
#' str(sample_catalog())
#'
#' @return
#'
#' A `list` object containing all of the needed information to open a very
#' simple connection contract
#'
sample_catalog <- function() {
  list(
    catalogs = list(
      name = "Database",
      type = "catalog",
      schemas = list(
        name = "Schema",
        type = "schema",
        tables = list(
          name = "table1",
          type = "table",
          fields = list(
            list(
              name = "field1",
              type = "chr"
            ),
            list(
              name = "field2",
              type = "int"
            )
          )
        )
      )
    )
  )
}

Try the rscontract package in your browser

Any scripts or data that you put into this service are public.

rscontract documentation built on Dec. 16, 2020, 1:07 a.m.