SQLite Get Rows


Node Information
Gets all the rows 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
Rows OUT List<SQLiteRow> MULTIPLE TRUE FALSE

Source
namespace Korduene.KGraph.Nodes.Database.SQLite
{
    [IsNode("Get Rows")]
    public class GetRows : 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.sqliterow>), AcceptsLinks.MULTIPLE, "Rows");
        public GetRows()
        {
            NodeType = KGraph.NodeType.Function;
            ReturnType = typeof(List<korduene.database.sqlite.sqliterow>);
            Name = "SQLite Get Rows";
            Dependency = DependencyLibraries.SQLITE;
            AddPort(db);
            AddPort(tname);
            AddPort(names);
            Information = "Gets all the rows in the specified table in the specified SQLite database.";
        }
        public override string Code()
        {
            return "return " + GetValue(db) + ".GetRows(" + GetValue(tname) + ");";
        }
    }
}

</korduene.database.sqlite.sqliterow></korduene.database.sqlite.sqliterow>