test_class.file: squel/src/test/java/com/github/gchudnov/squel/InsertTest.java
test_class.identifier: InsertTest
test_case.body: @Test
      public void fromQuery() {
          QueryBuilder sel = Squel.select().from("students").where("a = ?", 2);
          QueryBuilder sql = Squel.insert()
                  .into("table")
                  .fromQuery(Arrays.asList("field1", "field2"), sel);
  
          String actual = sql.toString();
          String expected = "INSERT INTO table (field1, field2) (SELECT * FROM students WHERE (a = 2))";
          assertEquals(expected, actual);
      }
test_case.class_method_signature: InsertTest.fromQuery()
test_case.full_signature: @Test public void fromQuery()
test_case.identifier: fromQuery
test_case.invocations: where from select fromQuery into insert asList toString assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void fromQuery()
focal_class.file: squel/src/main/java/com/github/gchudnov/squel/Insert.java
focal_class.identifier: Insert
focal_class.class_method_signature: Insert.Insert(QueryBuilderOptions options)
focal_class.full_signature:   Insert(QueryBuilderOptions options)
focal_class.identifier: Insert
focal_class.parameters: (QueryBuilderOptions options)
focal_class.signature:  Insert(QueryBuilderOptions options)
focal_class.class_method_signature: Insert.into(String table)
focal_class.full_signature: @Override public QueryBuilder into(String table)
focal_class.identifier: into
focal_class.modifiers: @Override public
focal_class.parameters: (String table)
focal_class.return: QueryBuilder
focal_class.signature: QueryBuilder into(String table)
focal_class.class_method_signature: Insert.set(String field, T value)
focal_class.full_signature: @Override public QueryBuilder set(String field, T value)
focal_class.identifier: set
focal_class.modifiers: @Override public
focal_class.parameters: (String field, T value)
focal_class.return: QueryBuilder
focal_class.signature: QueryBuilder set(String field, T value)
focal_class.class_method_signature: Insert.fromQuery(Iterable<String> fields, QueryBuilder query)
focal_class.full_signature: @Override public QueryBuilder fromQuery(Iterable<String> fields, QueryBuilder query)
focal_class.identifier: fromQuery
focal_class.modifiers: @Override public
focal_class.parameters: (Iterable<String> fields, QueryBuilder query)
focal_class.return: QueryBuilder
focal_class.signature: QueryBuilder fromQuery(Iterable<String> fields, QueryBuilder query)
focal_class.superclass: extends QueryBuilder
focal_method.body: @Override
      public QueryBuilder fromQuery(Iterable<String> fields, QueryBuilder query) {
          InsertFieldsFromQueryBlock block = (InsertFieldsFromQueryBlock) mBlocks.get(3);
          block.setFromQuery(fields, query);
          return this;
      }
focal_method.class_method_signature: Insert.fromQuery(Iterable<String> fields, QueryBuilder query)
focal_method.full_signature: @Override public QueryBuilder fromQuery(Iterable<String> fields, QueryBuilder query)
focal_method.identifier: fromQuery
focal_method.invocations: get setFromQuery
focal_method.modifiers: @Override public
focal_method.parameters: (Iterable<String> fields, QueryBuilder query)
focal_method.return: QueryBuilder
focal_method.signature: QueryBuilder fromQuery(Iterable<String> fields, QueryBuilder query)