create_sqlite_db: Create new 'SQLite' reglog database

View source: R/deprecated_database.R

create_sqlite_dbR Documentation

Create new 'SQLite' reglog database

Description

[Deprecated]

Used to match deprecated 'login_server' function. Use DBI_tables_create() to create tables in 'DBI' supported database for new 'RegLogServer' object.

Usage

create_sqlite_db(output_file, credentials = NULL, credentials_pass_hashed)

Arguments

output_file

path to new 'SQLite' database. After creation you need to provide it to login_server()

credentials

you can pass credentials data to create already populated tables. Provide data.frame object containing variables: timestamp, user_id, user_mail and user_pass. If there are multiple records with the same user_id, the most recent will be kept only.

credentials_pass_hashed

specify if you put in some credentials data. Are the passwords already hashed with 'scrypt' package? Takes TRUE (if hashed) or FALSE (if not hashed and need hashing)

Examples

sqlite.path <- tempfile(fileext = "sqlite")

create_sqlite_db(sqlite.path)

database <- sqlite_get_db(sqlite.path)

# you can then pass 'sqlite.path' to you 'login_server' call
#
# login_server(db_method = "sqlite",
#              sqlite_db = sqlite.path,
#              ...)
#

print(database)

shiny.reglog documentation built on Aug. 31, 2022, 1:06 a.m.