# query_context A fluent sql query_context builder Object definition ```cpp struct airplane { unsigned long id; std::string brand; std::string model; template void process(Operator &op) { namespace field = matador::utils::access; field::primary_key(op, "id", id); field::attribute(op, "brand", brand, 255); field::attribute(op, "model", model, 255); } }; ``` ```cpp connection_pool pool("sqlite://sqlite.db", 4); session s(pool); // register entity s.attach("airplane") // create all tables s.create(); // insert s.insert(1, "Airbus", "A380"); s.insert(2, "Boeing", "748"); s.insert(3, "Boeing", "707"); s.update().set({"model", "747"}).where("id"_col == 2); auto result = s.select().where("brand"_col == "Boeing"); for (const auto &plane : result) { std::cout << "airplane: " << plane->brand << " - " << plane->model << "\n"; } ```