Core

SQL

SQL helper.

3 public methods

Import

from Xenonix.Core import SQL

Search this API

Filter methods, arguments, and configuration keys on this page.

Configuration

Use Config(...) with these keys where the class exposes configuration.

This object does not expose a public Config table.

Public methods

Create

Creates a new SQL instance.

Create(Host, User, Pass, Database, Port=3306)

Arguments

Argument Default Accepted values What it does
Host Required Any valid value Host value used by the operation.
User Required Any valid value User value used by the operation.
Pass Required Any valid value Pass value used by the operation.
Database Required Any valid value Database value used by the operation.
Port 3306 Any valid value Port value used by the operation.

Output

Creates a new SQL object.

Get

Runs the Get operation for SQL.

Get(SqlCommand, Keys=True)

Arguments

Argument Default Accepted values What it does
SqlCommand Required Any valid value SqlCommand value used by the operation.
Keys True Any valid value Turns keys on or off.

Output

Returns the calculated result.

Post

Runs the Post operation for SQL.

Post(SqlCommand)

Arguments

Argument Default Accepted values What it does
SqlCommand Required Any valid value SqlCommand value used by the operation.

Output

Runs the operation. Some methods update the object in place.