protected override DevicePlanNode InternalPrepare(Schema.DevicePlan plan, PlanNode planNode) { // return a DevicePlanNode appropriate for execution of the given node TableNode tableNode = planNode as TableNode; if (tableNode != null) { var fhirTableNode = new FHIRDeviceTableNode(tableNode); fhirTableNode.Prepare(plan); if (plan.IsSupported) { return(fhirTableNode); } return(null); } CreateTableNode createTableNode = planNode as CreateTableNode; if (createTableNode != null) { var fhirCreateTableNode = new FHIRCreateTableNode(createTableNode); return(fhirCreateTableNode); } DropTableNode dropTableNode = planNode as DropTableNode; if (dropTableNode != null) { var fhirDropTableNode = new FHIRDropTableNode(dropTableNode); return(fhirDropTableNode); } return(null); }
public void Visit(CreateTableNode node) { _walker = _walker.NextChild(); _visitor.SetScope(_walker.Scope); node.Accept(_visitor); _walker = _walker.Parent(); }
private TypeDescriptor Visit(CreateTableNode node, Context context) { TypeInfo res; if (!node.IsTable) { res = builder.GenerateDictionaryType(node.TypeNode, node.ValueTypeNode); } else { res = builder.GenerateTableType(node.TypeNode); } context.Types.AddType(res); return(new TypeDescriptor(false, res, true)); }
public ICreateTableSyntax CreateTable(string name) { var createTableNode = new CreateTableNode(name); _sqlNodes.Add(createTableNode); return createTableNode.GetSyntax(); }
public FHIRCreateTableNode(CreateTableNode node) : base(node) { }
public PHINVADSCreateTableNode(CreateTableNode node) : base(node) { }