sql_dataset: A dataset consisting of the results from a SQL query

View source: R/sql_dataset.R

sql_record_specR Documentation

A dataset consisting of the results from a SQL query

Description

A dataset consisting of the results from a SQL query

Usage

sql_record_spec(names, types)

sql_dataset(driver_name, data_source_name, query, record_spec)

sqlite_dataset(filename, query, record_spec)

Arguments

names

Names of columns returned from the query

types

List of tf$DType objects (e.g. tf$int32, tf$double, tf$string) representing the types of the columns returned by the query.

driver_name

String containing the database type. Currently, the only supported value is 'sqlite'.

data_source_name

String containing a connection string to connect to the database.

query

String containing the SQL query to execute.

record_spec

Names and types of database columns

filename

Filename for the database

Value

A dataset


rstudio/tfdatasets documentation built on July 22, 2024, 12:41 a.m.