Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

RBaseX (version 1.1.1)

Replace: Replace

Description

Replaces a resource with the specified input.

Usage

Replace(session, path, input)

Value

A list with two items

  • info Aditional info

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

Arguments

session

BasexClient instance-ID

path

Path where to store the data

input

Replacement

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. This method returns self invisibly, thus making it possible to chain together multiple method calls.

Examples

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

Run the code above in your browser using DataLab