create_sqlite_db {shiny.reglog} | R Documentation |
Create new 'SQLite' reglog database
Description
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 |
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)
[Package shiny.reglog version 0.5.2 Index]