dolt()
returns a connection to a default database. It is a convenience
wrapper around dbConnect(dolt_local/remote(), ...
that also caches connections
for faster loading.
dolt(
dir = Sys.getenv("DOLT_DIR", "doltdb"),
dbname = NULL,
username = Sys.getenv("DOLT_USERNAME", "root"),
password = Sys.getenv("DOLT_PASSWORD", ""),
port = Sys.getenv("DOLT_PORT", 3306L),
host = Sys.getenv("DOLT_HOST", "127.0.0.1"),
cache_connection = TRUE,
...
)
The directory from which to server a dolt_local()
connection.
If "remote"
a dolt_remote()
connection will be made and no server will
be started.
for remote connections, the database name
The username. Defaults to "root"
The login password. Defaults to empty.
The TCP port for connections. Defaults to 3306.
The IP of the host. Defaults to the local machine, 127.0.0.1
Should we preserve a cache of the connection? allows faster load times and prevents connection from being garbage-collected.
further arguments passed to dolt_server()
or MariaDB()
Other connections:
dolt_local()
,
dolt_remote()