SQLite Drop Table


Node Information
Drops (removes) a 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
Drop IN RUN MULTIPLE FALSE FALSE
Database IN Object ONE FALSE FALSE
Name IN String ONE FALSE FALSE

Source
namespace Korduene.KGraph.Nodes.Database.SQLite
{
    [IsNode("Drop Table")]
    public class DropTable : Node
    {
        Port create = new Port(PortType.IN, typeof(RUN), AcceptsLinks.MULTIPLE, "Drop");
        Port db = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE, "Database");
        Port name = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Name");
        public DropTable()
        {
            NodeType = KGraph.NodeType.Method;
            Name = "SQLite Drop Table";
            Dependency = DependencyLibraries.SQLITE;
            AddPort(create);
            AddPort(db);
            AddPort(name);
            Information = "Drops (removes) a table with the specified name from the specified SQLite database.";
        }
        public override string Code()
        {
            return GetValue(db) + ".DropTable(" + GetValue(name) + ");";
        }
    }
}