Maria: Create a database connection object using MariaDB DBMS.

Description Usage Arguments Details Value See Also Examples

View source: R/DbMaria.R

Description

Create a database connection object using MariaDB DBMS.

Usage

1
Maria(db_name, db_user, db_pass, db_host, db_port = 3306)

Arguments

db_name

string. Name of the database to load.

db_user

string. User identification for the DBMS.

db_pass

string. Password identifying the user.

db_host

string. Name of the server hosting the database.

db_port

integer. Port the server is listening.

Details

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

Value

Maria, an S3 object of type Maria containing the required parameter to act as an interface to RMariaDB.

See Also

dbConnect Database

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
s1 <- Maria(db_host = '127.0.0.1', db_name = 'test', db_user = 'root', db_pass = '123456')
s1
#$db_host
#[1] "127.0.0.1"

#$db_port
#[1] 3306

#$db_name
#[1] "test"

#$db_user
#[1] "root"

$db_pass
#[1] "123456"

#$con_obj
#<MariaDBConnection>
#  Host:    127.0.0.1
#  Server:  5.5.60-MariaDB
#  Client:  5.5.60-MariaDB

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

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