Description Usage Arguments Details Value See Also Examples
Create a database connection object using MariaDB DBMS.
1 | Maria(db_name, db_user, db_pass, db_host, db_port = 3306)
|
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. |
Connect to a database and set con_obj
in the object itself.
Maria, an S3 object of type Maria containing the required parameter to act as an interface to RMariaDB.
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"
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.