Sqlite: Create a database connection object using Sqlite

Description Usage Arguments Details Value See Also Examples

View source: R/DbSqlite.R

Description

Create a database connection object using Sqlite

Usage

1
Sqlite(db_name)

Arguments

db_name

string. Path to the file containing the database to load. :memory: creates a temporary in-memory database.

Details

Connect to a database and set con_obj in the object itself.

Value

Sqlite, an S3 object of type Sqlite containing the required parameter to act as an interface to RSQLite.

See Also

dbConnect Database

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
con <- Sqlite(db_name = ':memory:')
con
#$db_name
#[1] ":memory:"

#$con_obj
#<SQLiteConnection>
#  Path: :memory:
#  Extensions: TRUE

#attr(,"class")
#[1] "Sqlite"

ks465/r-utils documentation built on May 23, 2019, 5:07 p.m.