/
krasninja
/
querycat
Обзор
Документация
Войти
/
krasninja
/
querycat
Код
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/QueryCat.Backend.Core/Functions/IFunction.cs
49 строк
1 KB
Ivan Kozhin
Introduce safe functions concept
25 янв 2024, 09:56
25 янв 2024, 09:56
d7659d7
Код
Авторство
О чём код?
using QueryCat.Backend.Core.Types; namespace QueryCat.Backend.Core.Functions; /// <summary> /// Function is a subprogram with input arguments and optional output value. /// </summary> public interface IFunction { /// <summary> /// Invocation delegate. /// </summary> FunctionDelegate Delegate { get; } /// <summary> /// Function name. /// </summary> string Name { get; } /// <summary> /// Function description. /// </summary> string Description { get; } /// <summary> /// Function return type. /// </summary> DataType ReturnType { get; } /// <summary> /// Optional type of object return type. /// </summary> public string ReturnObjectName { get; } /// <summary> /// Is aggregate function or standard function. /// </summary> bool IsAggregate { get; } /// <summary> /// Signature arguments. /// </summary> FunctionSignatureArgument[] Arguments { get; } /// <summary> /// Does function has side effects (can write anything to the system). /// </summary> bool IsSafe { get; } }