Basics#

exec

Execute the given script.

call

Call the specified function with the provided arguments.

variable

Set variables with the provided values.

sql

Executes a SQL query.

msql

scalar

Creates a Swordfish Scalar from a Python object.

vector

Creates a Swordfish Vector from a Python object or initializes one with specified type, size, capacity, and default value.

any_vector

Creates a Swordfish AnyVector from a Python object or initializes one with specified size, capacity, and default value.

array_vector

Creates a Swordfish ArrayVector from a Python object or using specified index, value, and type.

pair

Creates a Swordfish Pair from two Scalar values.

matrix

Creates a Swordfish Matrix from a Python object or initializes one with specified parameters.

set

Creates a Swordfish Set from a Python object or initializes one with a specified type and capacity.

dictionary

Creates a Swordfish Dictionary from a Python object, from separate keys and values, or as an empty dictionary with specified key and value types.

table

Creates or retrieves a Swordfish Table using various initialization methods.

partial

Creates a partially applied function by binding arguments to the original function.

function.swordfish_udf

Registers a user-defined function (UDF) in Swordfish.

meta_code

Generates the MetaCode context for working with MetaCode.

connect

Establishes a connection to different types of databases or sessions based on the provided parameters.