SQLite Search


Node Information
Searches all the tables in the specified SQLite database and returns entries all the entries matches the Keyword.
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
Keyword IN String ONE FALSE FALSE
Entries OUT List<SQLiteRow> MULTIPLE TRUE FALSE

Source
namespace Korduene.KGraph.Nodes.Database.SQLite
{
    [IsNode("Search")]
    public class Search : Node
    {
        Port db = new Port(PortType.IN, typeof(object), AcceptsLinks.ONE, "Database");
        Port tname = new Port(PortType.IN, typeof(string), AcceptsLinks.ONE, "Keyword");
        Port names = new Port(PortType.OUT, typeof(List<korduene.database.sqlite.sqliterow>), AcceptsLinks.MULTIPLE, "Entries");
        public Search()
        {
            NodeType = KGraph.NodeType.Function;
            ReturnType = typeof(List<korduene.database.sqlite.sqliterow>);
            Name = "SQLite Search";
            Dependency = DependencyLibraries.SQLITE;
            AddPort(db);
            AddPort(tname);
            AddPort(names);
            Information = "Searches all the tables in the specified SQLite database and returns entries all the entries matches the Keyword.";
        }
        public override string Code()
        {
            return "return " + GetValue(db) + ".SearchDatabase(" + GetValue(tname) + ");";
        }
    }
}

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