SQLite Delete Row


Node Information
Deletes a row in the specified table with the specified name from the specified SQLite database.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Delete IN RUN MULTIPLE FALSE FALSE
Database IN Object ONE FALSE FALSE
TableName IN String ONE FALSE FALSE
ColumnName IN String ONE FALSE FALSE
Equals IN String ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Database.SQLite
{
    [IsNode("Delete Row")]
    public class DeleteRow : Node
    {
        Port create = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Delete");
        Port db = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE, "Database");
        Port tname = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "TableName");
        Port cname = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "ColumnName");
        Port eq = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Equals");
        public DeleteRow()
        {
            NodeType = KGraph.NodeType.Method;
            Name = "SQLite Delete Row";
            Dependency = DependencyLibraries.SQLITE;
            AddPort(create);
            AddPort(db);
            AddPort(tname);
            AddPort(cname);
            AddPort(eq);
            Information = "Deletes a row in the specified table with the specified name from the specified SQLite database.";
        }
        public override string Code()
        {
            return GetValue(db) + ".DeleteRow(" + GetValue(tname) + ", " + GetValue(cname) + ", " + GetValue(eq) + ");";
        }
    }
}