Table of Contents

Interface IMySqlFunctions

Namespace
NextORM.Core
Assembly
nextorm.core.dll

A dialect's renderer for the MySQL/MariaDB-only functions of MySqlFunctions (the native string/conditional idioms, the %-templated date conversion and Unix-epoch functions, the hexadecimal hashes, the IPv4 conversion pair, the JSON mutation family and the binary UUID pair). The predicate and the renderer live on one object, so a name the dialect reports as supported always has a rendering; a provider with only part of the family (MariaDB) answers Supports(string) per name, and a provider with none returns null from MySqlFunctions.

public interface IMySqlFunctions
Extension Methods

Remarks

Unlike the stateless IIifRenderer/ILimitByRenderer, this object carries both the per-name predicate and the renderer, hence the plural capability-noun name rather than the *Renderer suffix.

Methods

Render(string, IReadOnlyList<string>)

Renders the MySQL/MariaDB function name over the already-rendered args. name is the CLR method name of the MySqlFunctions member (for example find_in_set, json_set).

string Render(string name, IReadOnlyList<string> args)

Parameters

name string
args IReadOnlyList<string>

Returns

string

Supports(string)

True when the MySQL/MariaDB function name can be rendered.

bool Supports(string name)

Parameters

name string

Returns

bool