SQLite Custom Query


Node Information
Executes a custom query on the specified SQLite database.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Execute IN RUN MULTIPLE FALSE FALSE
Database IN Object ONE FALSE FALSE
Query IN String ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Database.SQLite
{
    [IsNode("Custom Query")]
    public class CustomQuery : Node
    {
        Port create = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Execute");
        Port db = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE, "Database");
        Port qq = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Query");
        public CustomQuery()
        {
            NodeType = KGraph.NodeType.Method;
            Name = "SQLite Custom Query";
            Dependency = DependencyLibraries.SQLITE;
            AddPort(create);
            AddPort(db);
            AddPort(qq);
            Information = "Executes a custom query on the specified SQLite database.";
        }
        public override string Code()
        {
            return GetValue(db) + ".CustomQuery(" + GetValue(qq) + ");";
        }
    }
}