Learn R Programming

RBaseX (version 0.1.4)

Store: Store

Description

Stores a binary resource in the opened database.

Usage

Store(session, path, input)

Arguments

session

BasexClient instance-ID

path

Path where to store the data

input

Additional input, may be empty

Value

A list with two items

  • info Aditional info

  • success A boolean, indicating if the command was completed successfull

Details

Replaces a resource with the specified input. Use the database-command retrieve to retrieve the resource.

Examples

Run this code
# NOT RUN {
Execute(Session, "DROP DB BinBase")
testBin <- Execute(Session, "Check BinBase")
bais <- raw()
for (b in 252:255) bais <- c(bais, c(b)) %>% as.raw()
test <- Store(Session, "test.bin", bais)
print(test$success)
baos <- Execute(Session, "retrieve test.bin")
print(bais)
print(baos$result)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab