SQLite Get Columns


Node Information
Gets all the columns in the specified table in the specified SQLite database.
General Information
• This node doesn't have other available options.
Visual
Visual

Ports
Text Type DataType Accepts IsList CustomAcception
Database IN Object ONE FALSE FALSE
TableName IN String ONE FALSE FALSE
Columns OUT List<SQLiteColumn> MULTIPLE TRUE FALSE

Source
namespace Korduene.KGraph.Nodes.Database.SQLite
{
    [IsNode("Get Columns")]
    public class GetColumns : Node
    {
        Port db = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE, "Database");
        Port tname = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "TableName");
        Port names = new Port(PortType.OUT, typeof(List<korduene.database.sqlite.sqlitecolumn>), AcceptsLinks.MULTIPLE, "Columns");
        public GetColumns()
        {
            NodeType = KGraph.NodeType.Function;
            ReturnType = typeof(List<korduene.database.sqlite.sqlitecolumn>);
            Name = "SQLite Get Columns";
            Dependency = DependencyLibraries.SQLITE;
            AddPort(db);
            AddPort(tname);
            AddPort(names);
            Information = "Gets all the columns in the specified table in the specified SQLite database.";
        }
        public override string Code()
        {
            return "return " + GetValue(db) + ".GetColumns(" + GetValue(tname) + ");";
        }
    }
}

</korduene.database.sqlite.sqlitecolumn></korduene.database.sqlite.sqlitecolumn>