SQLite Get Table Names


Node Information
Gets table names 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
Names OUT List<String> MULTIPLE TRUE FALSE

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