Learn R Programming

RBaseX (version 1.1.2)

Add: Add

Description

Adds a new resource to the opened database.

Usage

Add(session, path, input)

Value

A list with two items

  • info Aditional info

  • success Boolean, indicating if the command was completed successfull

Arguments

session

BasexClient instance-ID

path

Path

input

Additional input (optional)

Details

The input can be a UTF-8 encoded XML document, a binary resource, or any other data (such as JSON or CSV) that can be successfully converted to a resource by the server. The utility-function input_to_raw can be used to convert an arbitrary character vector to a stream. This method returns self invisibly, thus making it possible to chain together multiple method calls.

Examples

Run this code
if (FALSE) {
Add(Session, "test", "Add")
}

Run the code above in your browser using DataLab