├── .gitignore ├── CMakeLists.txt ├── README.md ├── accounting ├── accounting.go ├── gometrics │ ├── accounting_gm.go │ └── accounting_gm_test.go ├── resolver │ └── resolver.go └── stub │ └── accounting_stub.go ├── algebra ├── agg_array.go ├── agg_array_distinct.go ├── agg_avg.go ├── agg_avg_distinct.go ├── agg_count.go ├── agg_count_distinct.go ├── agg_max.go ├── agg_min.go ├── agg_registry.go ├── agg_sum.go ├── agg_sum_distinct.go ├── agg_util.go ├── aggregate.go ├── algebra.go ├── base.go ├── coll_exists.go ├── context.go ├── delete.go ├── execute.go ├── explain.go ├── from.go ├── group.go ├── index_alter.go ├── index_build.go ├── index_create.go ├── index_drop.go ├── index_primary.go ├── insert.go ├── keyspace.go ├── merge.go ├── order.go ├── pair.go ├── param_named.go ├── param_positional.go ├── prepare.go ├── result.go ├── select.go ├── set_op.go ├── subquery.go ├── update.go ├── upsert.go └── visitor.go ├── build.sh ├── build_tags.sh ├── clustering ├── clustering.go ├── couchbase │ ├── README.md │ ├── clustering_cb.go │ └── clustering_cb_test.go ├── resolver │ └── resolver.go ├── stub │ ├── clustering_stub.go │ └── clustering_stub_test.go └── zookeeper │ ├── README.md │ ├── clustering_zk.go │ └── clustering_zk_test.go ├── datastore ├── couchbase │ ├── couchbase.go │ ├── couchbase_test.go │ ├── jsconverter.go │ ├── jsconverter_test.go │ ├── secondary_index_test.go │ ├── view_builder.go │ ├── view_index.go │ ├── view_template.go │ └── view_util.go ├── datastore.go ├── file │ ├── file.go │ └── file_test.go ├── index.go ├── mock │ ├── mock.go │ └── mock_test.go ├── privilege.go ├── resolver │ └── resolver.go └── system │ ├── system.go │ ├── system_keyspace_datastores.go │ ├── system_keyspace_dual.go │ ├── system_keyspace_indexes.go │ ├── system_keyspace_keyspaces.go │ ├── system_keyspace_namespaces.go │ ├── system_namespace.go │ └── system_test.go ├── dist ├── build_dist.sh ├── go-manifest ├── go-set-versions ├── license-ce-2013.txt ├── start_tutorial.bat ├── start_tutorial.sh └── version.json ├── docs ├── README.md ├── design_links.md ├── diagram │ ├── .png │ ├── Railroad-Diagram-Generator.png │ ├── alias.png │ ├── alter-bucket.png │ ├── alter-index.png │ ├── arithmetic-term.png │ ├── array-expr.png │ ├── array.png │ ├── assign.png │ ├── begin.png │ ├── block-comment.png │ ├── block.png │ ├── break.png │ ├── bucket-name.png │ ├── bucket-ref.png │ ├── bucket-spec.png │ ├── bucket-stmt.png │ ├── build-indexes.png │ ├── case-expr.png │ ├── case.png │ ├── char.png │ ├── chars.png │ ├── collection-cond.png │ ├── collection-expr.png │ ├── collection-predicate.png │ ├── collection-xform.png │ ├── commit.png │ ├── commop.png │ ├── comparison-term.png │ ├── comprehension.png │ ├── concatenation-term.png │ ├── cond.png │ ├── construction-expr.png │ ├── continue.png │ ├── create-index.png │ ├── create-primary-index.png │ ├── create-view-index.png │ ├── ctrl.png │ ├── cursor.png │ ├── dataset.png │ ├── ddl-stmt.png │ ├── decl.png │ ├── delete.png │ ├── deliver.png │ ├── digit.png │ ├── digits.png │ ├── dml-stmt.png │ ├── drop-index.png │ ├── drop-primary-index.png │ ├── drop-view-index.png │ ├── e.png │ ├── element-expr.png │ ├── elements.png │ ├── escaped-identifier.png │ ├── execute.png │ ├── existential-expr.png │ ├── exists-expr.png │ ├── exp.png │ ├── expr.png │ ├── field-expr.png │ ├── first-expr.png │ ├── first.png │ ├── for-iter.png │ ├── for-map.png │ ├── for.png │ ├── frac.png │ ├── from-clause.png │ ├── from-path.png │ ├── from-select-core.png │ ├── from-select.png │ ├── from-term.png │ ├── full-case.png │ ├── fullpath.png │ ├── function-call.png │ ├── function-name.png │ ├── function.png │ ├── group-by-clause.png │ ├── having-clause.png │ ├── hex-digit.png │ ├── identifier.png │ ├── if.png │ ├── in-expr.png │ ├── index-name.png │ ├── index-stmt.png │ ├── index-using.png │ ├── index-with.png │ ├── init.png │ ├── insert-select.png │ ├── insert-values.png │ ├── insert.png │ ├── int.png │ ├── join-clause.png │ ├── join-type.png │ ├── key-clause.png │ ├── key-var.png │ ├── keys-clause.png │ ├── keyspace-ref.png │ ├── keyspace.png │ ├── label-name.png │ ├── label.png │ ├── let-clause.png │ ├── letting-clause.png │ ├── lexpr.png │ ├── limit-clause.png │ ├── line-comment.png │ ├── literal-value.png │ ├── literal.png │ ├── logical-term.png │ ├── loop.png │ ├── map-expr.png │ ├── mcond.png │ ├── members.png │ ├── merge-actions.png │ ├── merge-delete.png │ ├── merge-insert.png │ ├── merge-source.png │ ├── merge-update.png │ ├── merge.png │ ├── mexpr.png │ ├── name-expr.png │ ├── name-var.png │ ├── named-bucket-ref.png │ ├── named-keyspace-ref.png │ ├── namespace.png │ ├── nest-clause.png │ ├── nested-expr.png │ ├── non-zero-digit.png │ ├── number.png │ ├── object.png │ ├── offset-clause.png │ ├── on-keys-clause.png │ ├── order-by-clause.png │ ├── ordering-term.png │ ├── pair.png │ ├── partition.png │ ├── pass.png │ ├── path-for.png │ ├── path.png │ ├── pool-name.png │ ├── prepare.png │ ├── query.png │ ├── range-cond.png │ ├── range-xform.png │ ├── rcvexpr.png │ ├── rcvop.png │ ├── reduce-expr.png │ ├── result-expr.png │ ├── return.png │ ├── returning-clause.png │ ├── rollback.png │ ├── rr-1.31.721.png │ ├── rr-1.33.807.png │ ├── rr-1.35.837.png │ ├── rr-1.36.893.png │ ├── rr-1.38.952.png │ ├── rr-1.39.959.png │ ├── searched-case-expr.png │ ├── searched-case.png │ ├── select-clause.png │ ├── select-core.png │ ├── select-for.png │ ├── select-from-core.png │ ├── select-from.png │ ├── select.png │ ├── sendop.png │ ├── set-clause.png │ ├── set-op.png │ ├── simple-case-expr.png │ ├── slice-expr.png │ ├── start.png │ ├── stmt.png │ ├── string.png │ ├── subpath.png │ ├── subquery-expr.png │ ├── subquery.png │ ├── subselect.png │ ├── terminated-stmt.png │ ├── transaction-stmt.png │ ├── truncate.png │ ├── uint.png │ ├── unescaped-identifier.png │ ├── unnest-clause.png │ ├── unset-clause.png │ ├── unset.png │ ├── update-for.png │ ├── update.png │ ├── upsert.png │ ├── use-keys-clause.png │ ├── using.png │ ├── val-var.png │ ├── value-clause.png │ ├── values-clause.png │ ├── var.png │ ├── variable.png │ ├── view-index-stmt.png │ ├── where-clause.png │ ├── while.png │ └── within-expr.png ├── dp4-syntax-changes.md ├── index.html ├── n1ql-acid.md ├── n1ql-authentication.md ├── n1ql-ddl.ebnf ├── n1ql-ddl.md ├── n1ql-definition.md ├── n1ql-dml.ebnf ├── n1ql-dml.md ├── n1ql-feature-status.md ├── n1ql-logic.ebnf ├── n1ql-logic.md ├── n1ql-preview-definition.md ├── n1ql-preview-model.md ├── n1ql-select.ebnf ├── n1ql-select.md ├── n1ql-system-catalog.md ├── requirements.md ├── secondaryindex_proposal.rst ├── unql-2013.ebnf ├── unql-2013.md └── versus-sql.md ├── errors └── errors.go ├── execution ├── alias.go ├── authorize.go ├── base.go ├── build.go ├── channel.go ├── collect.go ├── context.go ├── delete_send.go ├── discard.go ├── distinct.go ├── except.go ├── execution.go ├── explain.go ├── fetch.go ├── filter.go ├── group_final.go ├── group_initial.go ├── group_intermediate.go ├── group_util.go ├── index_alter.go ├── index_build.go ├── index_create.go ├── index_drop.go ├── index_primary.go ├── insert_send.go ├── intersect.go ├── join.go ├── let.go ├── limit.go ├── merge.go ├── nest.go ├── offset.go ├── order.go ├── parallel.go ├── prepare.go ├── project_final.go ├── project_initial.go ├── scan_count.go ├── scan_dummy.go ├── scan_index.go ├── scan_intersect.go ├── scan_key.go ├── scan_parent.go ├── scan_primary.go ├── scan_union.go ├── scan_util.go ├── scan_value.go ├── sequence.go ├── stream.go ├── union.go ├── unnest.go ├── update_clone.go ├── update_send.go ├── update_set.go ├── update_unset.go ├── update_util.go ├── upsert_send.go ├── util.go └── visitor.go ├── expression ├── arith_add.go ├── arith_div.go ├── arith_mod.go ├── arith_mult.go ├── arith_neg.go ├── arith_sub.go ├── base.go ├── binding.go ├── case_searched.go ├── case_simple.go ├── case_util.go ├── coll_any.go ├── coll_array.go ├── coll_every.go ├── coll_exists.go ├── coll_first.go ├── coll_in.go ├── coll_util.go ├── coll_within.go ├── comp_between.go ├── comp_eq.go ├── comp_ge.go ├── comp_gt.go ├── comp_le.go ├── comp_like.go ├── comp_lt.go ├── comp_missing.go ├── comp_null.go ├── comp_valued.go ├── concat.go ├── cons_array.go ├── cons_object.go ├── constant.go ├── context.go ├── doc.go ├── expression.go ├── formalizer.go ├── func_array.go ├── func_comp.go ├── func_cond_num.go ├── func_cond_unknown.go ├── func_date.go ├── func_json.go ├── func_meta.go ├── func_meta_test.go ├── func_num.go ├── func_obj.go ├── func_regexp.go ├── func_registry.go ├── func_str.go ├── func_type_check.go ├── func_type_conv.go ├── function.go ├── identifier.go ├── index.go ├── logic_and.go ├── logic_not.go ├── logic_or.go ├── mapper.go ├── nav_element.go ├── nav_field.go ├── nav_slice.go ├── parameter.go ├── parser │ └── parser.go ├── path.go ├── stringer.go ├── subquery.go ├── traverser.go └── visitor.go ├── logging ├── logger.go ├── logger_golog │ ├── logger_golog.go │ └── logger_golog_test.go ├── logger_retriever │ ├── logger_retriever.go │ └── logger_retriever_test.go └── resolver │ └── resolver.go ├── parser └── n1ql │ ├── README.md │ ├── build.sh │ ├── n1ql.go │ ├── n1ql.nex │ ├── n1ql.nn.go │ ├── n1ql.y │ ├── util.go │ └── y.go ├── plan ├── alias.go ├── authorize.go ├── base.go ├── build.go ├── build_delete.go ├── build_execute.go ├── build_explain.go ├── build_index.go ├── build_insert.go ├── build_merge.go ├── build_mutate.go ├── build_prepare.go ├── build_scan.go ├── build_select.go ├── build_update.go ├── build_upsert.go ├── channel.go ├── collect.go ├── delete.go ├── discard.go ├── distinct.go ├── except.go ├── explain.go ├── fetch.go ├── filter.go ├── group.go ├── index.go ├── insert.go ├── intersect.go ├── join.go ├── let.go ├── merge.go ├── op_registry.go ├── order.go ├── page.go ├── parallel.go ├── plan.go ├── prepare.go ├── prepared.go ├── project.go ├── scan.go ├── sequence.go ├── stream.go ├── union.go ├── update.go ├── upsert.go └── visitor.go ├── planner ├── lt.go ├── nnf.go ├── predicate.go ├── sarg.go ├── sarg_and.go ├── sarg_default.go ├── sarg_eq.go ├── sarg_factory.go ├── sarg_le.go ├── sarg_like.go ├── sarg_lt.go ├── sarg_missing.go ├── sarg_null.go ├── sarg_or.go ├── sarg_valued.go ├── sargable.go ├── sargable_and.go ├── sargable_binary.go ├── sargable_default.go ├── sargable_factory.go ├── sargable_like.go ├── sargable_or.go ├── sargable_unary.go ├── subset.go ├── subset_and.go ├── subset_default.go ├── subset_eq.go ├── subset_factory.go ├── subset_le.go ├── subset_like.go ├── subset_lt.go └── subset_or.go ├── querylog └── querylog.go ├── server ├── cbq-engine │ ├── Readme.txt │ ├── build.sh │ ├── main.go │ └── start-cbq-engine.sh ├── http │ ├── admin_accounting_endpoint.go │ ├── admin_clustering_endpoint.go │ ├── admin_endpoint.go │ ├── service_buffer_pool.go │ ├── service_endpoint.go │ ├── service_request.go │ └── service_response.go ├── request.go └── server.go ├── shell └── cbq │ ├── build.sh │ ├── history.go │ ├── interactive.go │ └── shell.go ├── sort └── sort.go ├── static └── index.html ├── test ├── json.go ├── json │ └── default │ │ ├── README.md │ │ ├── articles1 │ │ ├── article-34.json │ │ ├── article-35.json │ │ ├── article-36.json │ │ ├── article-37.json │ │ ├── article-38.json │ │ └── article-39.json │ │ ├── articles2 │ │ ├── article-34.json │ │ ├── article-35.json │ │ ├── article-36.json │ │ ├── article-37.json │ │ ├── article-38.json │ │ └── article-39.json │ │ ├── blog │ │ ├── 123.json │ │ ├── 124.json │ │ ├── 125.json │ │ └── 126.json │ │ ├── cases │ │ ├── case_any.json │ │ ├── case_array.json │ │ ├── case_as.json │ │ ├── case_by_id.json │ │ ├── case_case.json │ │ ├── case_children.json │ │ ├── case_distinct.json │ │ ├── case_error.json │ │ ├── case_expression.json │ │ ├── case_first.json │ │ ├── case_from-over.json │ │ ├── case_from.json │ │ ├── case_func_array.json │ │ ├── case_func_comp.json │ │ ├── case_func_cond_num.json │ │ ├── case_func_cond_unkn.json │ │ ├── case_func_date.json │ │ ├── case_func_json.json │ │ ├── case_func_meta.json │ │ ├── case_func_num.json │ │ ├── case_func_obj.json │ │ ├── case_func_str.json │ │ ├── case_group_by_having.json │ │ ├── case_innerjoin.json │ │ ├── case_key.json │ │ ├── case_leftjoin.json │ │ ├── case_naming.json │ │ ├── case_non-json.json │ │ ├── case_orderby.json │ │ ├── case_select.json │ │ ├── case_simple.json │ │ ├── case_type_check.json │ │ ├── case_type_conv.json │ │ ├── case_unnest.json │ │ ├── case_where.json │ │ ├── fixme │ │ └── untested │ │ │ ├── case_any.json │ │ │ ├── case_array.json │ │ │ ├── case_as.json │ │ │ ├── case_by_id.json │ │ │ ├── case_case.json │ │ │ ├── case_children.json │ │ │ ├── case_distinct.json │ │ │ ├── case_error.json │ │ │ ├── case_expression.json │ │ │ ├── case_first.json │ │ │ ├── case_from-over.json │ │ │ ├── case_from.json │ │ │ ├── case_functions.json │ │ │ ├── case_group_by_having.json │ │ │ ├── case_join.json │ │ │ ├── case_key.json │ │ │ ├── case_naming.json │ │ │ ├── case_non-json.json │ │ │ ├── case_orderby.json │ │ │ ├── case_unnest.json │ │ │ └── case_where.json │ │ ├── catalog │ │ ├── book1.json │ │ ├── movie1.json │ │ └── tvshow1.json │ │ ├── categories1 │ │ ├── beer.json │ │ ├── entertainment.json │ │ ├── movies.json │ │ ├── physics.json │ │ └── science.json │ │ ├── categories2 │ │ ├── entertainment.json │ │ └── science.json │ │ ├── complex_json │ │ ├── 1.json │ │ ├── 2.json │ │ ├── 3.json │ │ ├── 4.json │ │ ├── 5.json │ │ └── 6.json │ │ ├── contacts │ │ ├── dave.json │ │ ├── earl.json │ │ ├── fred.json │ │ ├── harry.json │ │ ├── ian.json │ │ └── jane.json │ │ ├── couchbase_cases │ │ ├── case_agg_opts.json │ │ ├── case_count_path_opts.json │ │ ├── case_cover.json │ │ ├── case_indexes.json │ │ └── case_meta.json │ │ ├── game │ │ ├── damien.json │ │ ├── dustin.json │ │ ├── junyi.json │ │ ├── marty.json │ │ └── steve.json │ │ ├── jobs │ │ ├── 1.json │ │ ├── 2.json │ │ ├── 3.json │ │ ├── 4.json │ │ ├── 5.json │ │ ├── 6.json │ │ └── 7.json │ │ ├── mixed │ │ ├── A.json │ │ ├── a_string.json │ │ ├── aa.json │ │ ├── empty_array.json │ │ ├── empty_object.json │ │ ├── false.json │ │ ├── longer_string_array.json │ │ ├── missing.json │ │ ├── negative_big_number.json │ │ ├── negative_small_number.json │ │ ├── null.json │ │ ├── numeric_array.json │ │ ├── one_key_numeric_object.json │ │ ├── one_key_string.json │ │ ├── positive_big_number.json │ │ ├── positive_small_number.json │ │ ├── string_array.json │ │ ├── true.json │ │ ├── two_key_object.json │ │ ├── two_key_reversed_object.json │ │ └── zero.json │ │ ├── non-json │ │ ├── 000.json │ │ └── 001.json │ │ ├── orders-marty │ │ ├── 1.json │ │ └── 2.json │ │ ├── orders │ │ ├── 1200.json │ │ ├── 1234.json │ │ ├── 1235.json │ │ └── 1236.json │ │ ├── orders2 │ │ ├── 1000.json │ │ ├── 1100.json │ │ ├── 1111.json │ │ ├── 1134.json │ │ ├── 1135.json │ │ ├── 1136.json │ │ ├── 1200.json │ │ ├── 1222.json │ │ ├── 1234.json │ │ ├── 1235.json │ │ ├── 1236.json │ │ ├── 1333.json │ │ └── 1444.json │ │ ├── orders3 │ │ ├── 1222.json │ │ ├── 1234.json │ │ ├── 1235.json │ │ ├── 1236.json │ │ └── 1373.json │ │ ├── products │ │ ├── coffee01.json │ │ ├── sugar22.json │ │ └── tea111.json │ │ ├── tags │ │ ├── beer.json │ │ ├── cmusketeers.json │ │ ├── mayan.json │ │ └── terabithia.json │ │ ├── tweets │ │ ├── 12738165059.json │ │ ├── 12738165060.json │ │ ├── 12738165061.json │ │ ├── 12738165062.json │ │ ├── 12738165063.json │ │ └── 12738165064.json │ │ ├── user_profile │ │ ├── Ardelia_91499701.json │ │ ├── Armanda_57083532.json │ │ ├── Casey_50744697.json │ │ ├── Darrell_24316368.json │ │ ├── Drew_71707295.json │ │ ├── Jovan_57838602.json │ │ ├── Kasha_74117770.json │ │ ├── Laurine_54405959.json │ │ ├── Lavona_56124224.json │ │ ├── Nicholas_66386033.json │ │ ├── Patrica_49528834.json │ │ ├── Reda_56369093.json │ │ ├── Valene_54838894.json │ │ ├── Weston_3077363.json │ │ └── Yolonda_78802551.json │ │ └── users_with_orders │ │ ├── Adaline_67672807.json │ │ ├── Aide_48687583.json │ │ ├── Alishia_76728586.json │ │ ├── Aliza_5452374.json │ │ ├── Amiee_7993471.json │ │ ├── Andrea_28317556.json │ │ ├── Anita_59632289.json │ │ ├── Armandina_7164099.json │ │ ├── Bennett_7822875.json │ │ ├── Berry_8939806.json │ │ ├── Boyce_43992524.json │ │ ├── Carin_66303336.json │ │ ├── Carmelina_83652573.json │ │ ├── Carole_73815149.json │ │ ├── Charlene_27922619.json │ │ ├── Clare_364958.json │ │ ├── Clarine_6651254.json │ │ ├── Clorinda_81878696.json │ │ ├── Concepcion_9135689.json │ │ ├── Dagmar_23328509.json │ │ ├── Daina_68202235.json │ │ ├── Dale_47487690.json │ │ ├── Dania_7021839.json │ │ ├── Daniela_44775670.json │ │ ├── Daniella_55868984.json │ │ ├── Del_49512473.json │ │ ├── Denis_32248733.json │ │ ├── Denita_57523676.json │ │ ├── Devona_14385017.json │ │ ├── Dorothea_44046955.json │ │ ├── Drew_71707295.json │ │ ├── Earline_19267058.json │ │ ├── Edgardo_50071453.json │ │ ├── Edythe_43121282.json │ │ ├── Elinor_33313792.json │ │ ├── Elroy_67806217.json │ │ ├── Erminia_69439919.json │ │ ├── Eve_74255491.json │ │ ├── Fausto_60268264.json │ │ ├── Floyd_75606254.json │ │ ├── Francina_44076988.json │ │ ├── Frankie_39839291.json │ │ ├── Gene_79725542.json │ │ ├── Gerda_83805577.json │ │ ├── Hailey_17926493.json │ │ ├── Jackie_77489415.json │ │ ├── Jasmin_79389963.json │ │ ├── Jonathon_88025771.json │ │ ├── Joy_30282690.json │ │ ├── Juliann_7598556.json │ │ ├── Julio_1024717.json │ │ ├── Junko_4076572.json │ │ ├── Kallie_56419938.json │ │ ├── Kenna_23979702.json │ │ ├── Kerrie_31949223.json │ │ ├── Keven_42241460.json │ │ ├── Kimberley_47718181.json │ │ ├── Kyle_58073906.json │ │ ├── Lakeesha_78622017.json │ │ ├── Lakisha_50709542.json │ │ ├── Lasonya_1054342.json │ │ ├── Latricia_38196828.json │ │ ├── Laurena_64224769.json │ │ ├── Leann_56519658.json │ │ ├── Leif_20105422.json │ │ ├── Len_38817058.json │ │ ├── Lenard_738907.json │ │ ├── Lesley_24847969.json │ │ ├── Lilli_66227734.json │ │ ├── Loria_6886351.json │ │ ├── Lorraine_3104097.json │ │ ├── Mabelle_39404036.json │ │ ├── Madaline_6687999.json │ │ ├── Malia_41708039.json │ │ ├── Maragret_31017107.json │ │ ├── Marceline_65544247.json │ │ ├── Mei_43996997.json │ │ ├── Melvin_32792191.json │ │ ├── Mitchell_37945034.json │ │ ├── Nakesha_30384428.json │ │ ├── Natalya_4159168.json │ │ ├── Neida_6140889.json │ │ ├── Neil_54507669.json │ │ ├── Raleigh_32499577.json │ │ ├── Randal_56044021.json │ │ ├── Reynalda_41392033.json │ │ ├── Ronda_89913467.json │ │ ├── Shawnee_49065147.json │ │ ├── Sueann_84562518.json │ │ ├── T103929516925.json │ │ ├── T104951629322.json │ │ ├── T105343889104.json │ │ ├── T108245901640.json │ │ ├── T117520554954.json │ │ ├── T118033252098.json │ │ ├── T123328374845.json │ │ ├── T124328404710.json │ │ ├── T125563021576.json │ │ ├── T126656844929.json │ │ ├── T128064097943.json │ │ ├── T129953161367.json │ │ ├── T138062011396.json │ │ ├── T138839139972.json │ │ ├── T141621392299.json │ │ ├── T149428995904.json │ │ ├── T155361194178.json │ │ ├── T164757435719.json │ │ ├── T167743839920.json │ │ ├── T177061031781.json │ │ ├── T179222196325.json │ │ ├── T179729807373.json │ │ ├── T180130284234.json │ │ ├── T182359454499.json │ │ ├── T182622186757.json │ │ ├── T183428307793.json │ │ ├── T185231122745.json │ │ ├── T205356703947.json │ │ ├── T209065534457.json │ │ ├── T212541498770.json │ │ ├── T214749702558.json │ │ ├── T214948712062.json │ │ ├── T222837463060.json │ │ ├── T223543881404.json │ │ ├── T234668559772.json │ │ ├── T236369091384.json │ │ ├── T236720831384.json │ │ ├── T237156399157.json │ │ ├── T238254936907.json │ │ ├── T240229095892.json │ │ ├── T245742914084.json │ │ ├── T247556584854.json │ │ ├── T249349897826.json │ │ ├── T259428665225.json │ │ ├── T261724988417.json │ │ ├── T267147628219.json │ │ ├── T269244435090.json │ │ ├── T274454114807.json │ │ ├── T275527432241.json │ │ ├── T279321819861.json │ │ ├── T283736056955.json │ │ ├── T284048333904.json │ │ ├── T287248793265.json │ │ ├── T287933705863.json │ │ ├── T293239669325.json │ │ ├── T293959878197.json │ │ ├── T306128256394.json │ │ ├── T306245809844.json │ │ ├── T308067351109.json │ │ ├── T313832515725.json │ │ ├── T314236716840.json │ │ ├── T318460645928.json │ │ ├── T322634729755.json │ │ ├── T330335361508.json │ │ ├── T339127568452.json │ │ ├── T339738183491.json │ │ ├── T344667619879.json │ │ ├── T345468016167.json │ │ ├── T346854065421.json │ │ ├── T352155829988.json │ │ ├── T353665766075.json │ │ ├── T354942572718.json │ │ ├── T356433904753.json │ │ ├── T367948558705.json │ │ ├── T367957994363.json │ │ ├── T368441127044.json │ │ ├── T369824744541.json │ │ ├── T370150189529.json │ │ ├── T375243641855.json │ │ ├── T376222094938.json │ │ ├── T376350706852.json │ │ ├── T387830456929.json │ │ ├── T387939872520.json │ │ ├── T402320858473.json │ │ ├── T402321796426.json │ │ ├── T403023407666.json │ │ ├── T404936902646.json │ │ ├── T412453299498.json │ │ ├── T413851914599.json │ │ ├── T420546695608.json │ │ ├── T426736924651.json │ │ ├── T426736928477.json │ │ ├── T431548904092.json │ │ ├── T438061461103.json │ │ ├── T440040305395.json │ │ ├── T440564675703.json │ │ ├── T442721539073.json │ │ ├── T445228864031.json │ │ ├── T446643524296.json │ │ ├── T450021497472.json │ │ ├── T451450262181.json │ │ ├── T452132125726.json │ │ ├── T466245491733.json │ │ ├── T466337106525.json │ │ ├── T468924122600.json │ │ ├── T469923147486.json │ │ ├── T470135811712.json │ │ ├── T490767747884.json │ │ ├── T496951148199.json │ │ ├── T498726759745.json │ │ ├── T499723387040.json │ │ ├── T500465009059.json │ │ ├── T501625697010.json │ │ ├── T504647326095.json │ │ ├── T504820118089.json │ │ ├── T511422157046.json │ │ ├── T519367261064.json │ │ ├── T521422841208.json │ │ ├── T523068014139.json │ │ ├── T527139094719.json │ │ ├── T528146481338.json │ │ ├── T529631237314.json │ │ ├── T532526784267.json │ │ ├── T534757927541.json │ │ ├── T539738244674.json │ │ ├── T545064239003.json │ │ ├── T546950011310.json │ │ ├── T553150947381.json │ │ ├── T553634919630.json │ │ ├── T555249396948.json │ │ ├── T558144134706.json │ │ ├── T559134122391.json │ │ ├── T560565358672.json │ │ ├── T564444649548.json │ │ ├── T570853223083.json │ │ ├── T571646213811.json │ │ ├── T572332806296.json │ │ ├── T573145204032.json │ │ ├── T580542593405.json │ │ ├── T580741965822.json │ │ ├── T580945593818.json │ │ ├── T581336681324.json │ │ ├── T582925621506.json │ │ ├── T585551542590.json │ │ ├── T585931895139.json │ │ ├── T586443808905.json │ │ ├── T587566764357.json │ │ ├── T590862061716.json │ │ ├── T597164508171.json │ │ ├── T602529323888.json │ │ ├── T603552836056.json │ │ ├── T609958478874.json │ │ ├── T610447164953.json │ │ ├── T613546125943.json │ │ ├── T617827793234.json │ │ ├── T627065046452.json │ │ ├── T629924376704.json │ │ ├── T632629028329.json │ │ ├── T633239293778.json │ │ ├── T636943876971.json │ │ ├── T638751835595.json │ │ ├── T641254794533.json │ │ ├── T645255981124.json │ │ ├── T646249424084.json │ │ ├── T647126697120.json │ │ ├── T647235416106.json │ │ ├── T649141238588.json │ │ ├── T651152156778.json │ │ ├── T655153493351.json │ │ ├── T655263175301.json │ │ ├── T656631131201.json │ │ ├── T657924073364.json │ │ ├── T662354031538.json │ │ ├── T671825381704.json │ │ ├── T672221288208.json │ │ ├── T672854337296.json │ │ ├── T674050328203.json │ │ ├── T674054631095.json │ │ ├── T675447094917.json │ │ ├── T677233511602.json │ │ ├── T680066008979.json │ │ ├── T681051646504.json │ │ ├── T683043194971.json │ │ ├── T689254152898.json │ │ ├── T697537834646.json │ │ ├── T699649912633.json │ │ ├── T700840132149.json │ │ ├── T703068425987.json │ │ ├── T707523609134.json │ │ ├── T710155831289.json │ │ ├── T711039632537.json │ │ ├── T713425858197.json │ │ ├── T718546683894.json │ │ ├── T721262742560.json │ │ ├── T722569831208.json │ │ ├── T726824542576.json │ │ ├── T729243037283.json │ │ ├── T729940525745.json │ │ ├── T739935577531.json │ │ ├── T740767026593.json │ │ ├── T749550467162.json │ │ ├── T769348087819.json │ │ ├── T771466861943.json │ │ ├── T772851595562.json │ │ ├── T772859202679.json │ │ ├── T776850045272.json │ │ ├── T778159812660.json │ │ ├── T778334079874.json │ │ ├── T782663781809.json │ │ ├── T788422224413.json │ │ ├── T789621474614.json │ │ ├── T790267985723.json │ │ ├── T796535165670.json │ │ ├── T803322881333.json │ │ ├── T803860372940.json │ │ ├── T811331484570.json │ │ ├── T812851042648.json │ │ ├── T820227777057.json │ │ ├── T822543165641.json │ │ ├── T824430588755.json │ │ ├── T825237533328.json │ │ ├── T827735448636.json │ │ ├── T833161711344.json │ │ ├── T836156591818.json │ │ ├── T836225511125.json │ │ ├── T841642507924.json │ │ ├── T848837229474.json │ │ ├── T849726961912.json │ │ ├── T854140224593.json │ │ ├── T854237276537.json │ │ ├── T857566791425.json │ │ ├── T861848999722.json │ │ ├── T869932057427.json │ │ ├── T870351974549.json │ │ ├── T872358395049.json │ │ ├── T882845249273.json │ │ ├── T882869943554.json │ │ ├── T883140375321.json │ │ ├── T883657628037.json │ │ ├── T883659895619.json │ │ ├── T883861254740.json │ │ ├── T884859889648.json │ │ ├── T887444453450.json │ │ ├── T890426382622.json │ │ ├── T893054814567.json │ │ ├── T899941429406.json │ │ ├── T901926226467.json │ │ ├── T906657403311.json │ │ ├── T907137024138.json │ │ ├── T908558139350.json │ │ ├── T909433049222.json │ │ ├── T912933758156.json │ │ ├── T917959534170.json │ │ ├── T918140237656.json │ │ ├── T923564671930.json │ │ ├── T926629881796.json │ │ ├── T926964316018.json │ │ ├── T928254098925.json │ │ ├── T938257799752.json │ │ ├── T939847877405.json │ │ ├── T941427651424.json │ │ ├── T944145023603.json │ │ ├── T950266173752.json │ │ ├── T952631322242.json │ │ ├── T956120393594.json │ │ ├── T958824665960.json │ │ ├── T959025942927.json │ │ ├── T965735424675.json │ │ ├── T972042343392.json │ │ ├── T973220959199.json │ │ ├── T974148797695.json │ │ ├── T975057097133.json │ │ ├── T976452774955.json │ │ ├── T976742769090.json │ │ ├── T979824273595.json │ │ ├── T983248993826.json │ │ ├── T984729317603.json │ │ ├── T984966304337.json │ │ ├── T988668161749.json │ │ ├── T993364821049.json │ │ ├── Tajuana_40937693.json │ │ ├── Tamekia_13483660.json │ │ ├── Tatiana_15401485.json │ │ ├── Tayna_6191610.json │ │ ├── Teri_81271912.json │ │ ├── Timika_96599892.json │ │ ├── Weston_3077363.json │ │ ├── Willene_40294010.json │ │ ├── Williams_73738768.json │ │ ├── Zetta_57088934.json │ │ └── Zonia_3969310.json └── json_test.go ├── timestamp └── timestamp.go ├── tutorial ├── README.md ├── build.sh ├── content │ ├── ace │ │ ├── ace.js │ │ ├── mode-json.js │ │ ├── mode-n1ql.js │ │ ├── theme-eclipse.js │ │ └── worker-json.js │ ├── images │ │ ├── activeshopper.png │ │ ├── coffeecup.png │ │ ├── coupons.png │ │ ├── ecommerce.png │ │ ├── howzipworks.png │ │ ├── onedaysale.png │ │ ├── purchaseorder.png │ │ ├── reviews.png │ │ ├── salesmam.png │ │ ├── searchknowhow.png │ │ ├── sortby.png │ │ ├── top10.png │ │ ├── top3.png │ │ └── webpagination.png │ ├── index.html │ ├── jquery │ │ └── jquery.js │ ├── logo.png │ ├── slide-1.md │ ├── slide-10.md │ ├── slide-11.md │ ├── slide-12.md │ ├── slide-13.md │ ├── slide-14.md │ ├── slide-15.md │ ├── slide-16.md │ ├── slide-17.md │ ├── slide-18.md │ ├── slide-19.md │ ├── slide-2.md │ ├── slide-20.md │ ├── slide-21.md │ ├── slide-22.md │ ├── slide-23.md │ ├── slide-24.md │ ├── slide-25.md │ ├── slide-26.md │ ├── slide-27.md │ ├── slide-28.md │ ├── slide-29.md │ ├── slide-3.md │ ├── slide-30.md │ ├── slide-31.md │ ├── slide-32.md │ ├── slide-33.md │ ├── slide-34.md │ ├── slide-35.md │ ├── slide-36.md │ ├── slide-37.md │ ├── slide-38.md │ ├── slide-39.md │ ├── slide-4.md │ ├── slide-40.md │ ├── slide-41.md │ ├── slide-42.md │ ├── slide-43.md │ ├── slide-44.md │ ├── slide-45.md │ ├── slide-46.md │ ├── slide-47.md │ ├── slide-48.md │ ├── slide-49.md │ ├── slide-5.md │ ├── slide-50.md │ ├── slide-51.md │ ├── slide-52.md │ ├── slide-53.md │ ├── slide-54.md │ ├── slide-6.md │ ├── slide-7.md │ ├── slide-8.md │ ├── slide-9.md │ ├── tutorial.css │ └── tutorial.js ├── data │ └── sampledb.zip └── tutorial.go ├── util ├── external_ip.go ├── quantity.go ├── stack.go ├── stack_test.go └── uuid.go └── value ├── README.md ├── annotated.go ├── array.go ├── boolean.go ├── doc.go ├── example ├── example └── main.go ├── missing.go ├── null.go ├── number.go ├── object.go ├── parsed.go ├── scope.go ├── set.go ├── sort.go ├── string.go ├── testdata └── code.json.gz ├── value.go └── value_test.go /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *~ 3 | y.output 4 | shell/cbq/cbq 5 | server/cbq-engine/cbq-engine 6 | tutorial/tutorial 7 | *.swp 8 | -------------------------------------------------------------------------------- /build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo go get -d -v ./... 4 | go get -d -v ./... 5 | 6 | echo cd parser/n1ql 7 | cd parser/n1ql 8 | ./build.sh $1 9 | cd ../.. 10 | 11 | echo cd server/cbq-engine 12 | cd server/cbq-engine 13 | ./build.sh $1 14 | cd ../.. 15 | 16 | echo cd shell/cbq 17 | cd shell/cbq 18 | ./build.sh $1 19 | cd ../.. 20 | 21 | echo cd tutorial 22 | cd tutorial 23 | ./build.sh $1 24 | cd .. 25 | 26 | echo go install ./... 27 | go install ./... 28 | -------------------------------------------------------------------------------- /build_tags.sh: -------------------------------------------------------------------------------- 1 | find . -name "*.go" > cscope.files 2 | find . -name "*.go" | xargs gotags > tags 3 | -------------------------------------------------------------------------------- /dist/start_tutorial.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | pushd "%~dp0" 4 | echo. 5 | echo In your web browser open http://localhost:8093/tutorial/ 6 | echo. 7 | 8 | start "cbq" "http://localhost:8093/tutorial/" 9 | 10 | cbq-engine -datastore=dir:data 11 | 12 | popd 13 | -------------------------------------------------------------------------------- /dist/start_tutorial.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo 4 | echo "In your web browser open http://localhost:8093/tutorial/" 5 | echo 6 | 7 | ./cbq-engine -datastore=dir:./data 8 | -------------------------------------------------------------------------------- /dist/version.json: -------------------------------------------------------------------------------- 1 | {"version": "dp4_sprint1-131-g5ff1cf4"} 2 | -------------------------------------------------------------------------------- /docs/README.md: -------------------------------------------------------------------------------- 1 | ## Generating Railroad diagrams 2 | 3 | 1. Go to [Railroad Diagram Generator](http://bottlecaps.de/rr/ui) 4 | 1. Go to Edit Grammar 5 | 1. Upload your grammar file 6 | 1. Go to View Diagram 7 | 1. Select PNG 8 | 1. Select Download 9 | 1. The generated diagrams will be in the downloaded zip file 10 | -------------------------------------------------------------------------------- /docs/diagram/.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/.png -------------------------------------------------------------------------------- /docs/diagram/Railroad-Diagram-Generator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/Railroad-Diagram-Generator.png -------------------------------------------------------------------------------- /docs/diagram/alias.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/alias.png -------------------------------------------------------------------------------- /docs/diagram/alter-bucket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/alter-bucket.png -------------------------------------------------------------------------------- /docs/diagram/alter-index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/alter-index.png -------------------------------------------------------------------------------- /docs/diagram/arithmetic-term.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/arithmetic-term.png -------------------------------------------------------------------------------- /docs/diagram/array-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/array-expr.png -------------------------------------------------------------------------------- /docs/diagram/array.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/array.png -------------------------------------------------------------------------------- /docs/diagram/assign.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/assign.png -------------------------------------------------------------------------------- /docs/diagram/begin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/begin.png -------------------------------------------------------------------------------- /docs/diagram/block-comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/block-comment.png -------------------------------------------------------------------------------- /docs/diagram/block.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/block.png -------------------------------------------------------------------------------- /docs/diagram/break.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/break.png -------------------------------------------------------------------------------- /docs/diagram/bucket-name.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/bucket-name.png -------------------------------------------------------------------------------- /docs/diagram/bucket-ref.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/bucket-ref.png -------------------------------------------------------------------------------- /docs/diagram/bucket-spec.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/bucket-spec.png -------------------------------------------------------------------------------- /docs/diagram/bucket-stmt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/bucket-stmt.png -------------------------------------------------------------------------------- /docs/diagram/build-indexes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/build-indexes.png -------------------------------------------------------------------------------- /docs/diagram/case-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/case-expr.png -------------------------------------------------------------------------------- /docs/diagram/case.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/case.png -------------------------------------------------------------------------------- /docs/diagram/char.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/char.png -------------------------------------------------------------------------------- /docs/diagram/chars.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/chars.png -------------------------------------------------------------------------------- /docs/diagram/collection-cond.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/collection-cond.png -------------------------------------------------------------------------------- /docs/diagram/collection-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/collection-expr.png -------------------------------------------------------------------------------- /docs/diagram/collection-predicate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/collection-predicate.png -------------------------------------------------------------------------------- /docs/diagram/collection-xform.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/collection-xform.png -------------------------------------------------------------------------------- /docs/diagram/commit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/commit.png -------------------------------------------------------------------------------- /docs/diagram/commop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/commop.png -------------------------------------------------------------------------------- /docs/diagram/comparison-term.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/comparison-term.png -------------------------------------------------------------------------------- /docs/diagram/comprehension.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/comprehension.png -------------------------------------------------------------------------------- /docs/diagram/concatenation-term.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/concatenation-term.png -------------------------------------------------------------------------------- /docs/diagram/cond.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/cond.png -------------------------------------------------------------------------------- /docs/diagram/construction-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/construction-expr.png -------------------------------------------------------------------------------- /docs/diagram/continue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/continue.png -------------------------------------------------------------------------------- /docs/diagram/create-index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/create-index.png -------------------------------------------------------------------------------- /docs/diagram/create-primary-index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/create-primary-index.png -------------------------------------------------------------------------------- /docs/diagram/create-view-index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/create-view-index.png -------------------------------------------------------------------------------- /docs/diagram/ctrl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/ctrl.png -------------------------------------------------------------------------------- /docs/diagram/cursor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/cursor.png -------------------------------------------------------------------------------- /docs/diagram/dataset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/dataset.png -------------------------------------------------------------------------------- /docs/diagram/ddl-stmt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/ddl-stmt.png -------------------------------------------------------------------------------- /docs/diagram/decl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/decl.png -------------------------------------------------------------------------------- /docs/diagram/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/delete.png -------------------------------------------------------------------------------- /docs/diagram/deliver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/deliver.png -------------------------------------------------------------------------------- /docs/diagram/digit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/digit.png -------------------------------------------------------------------------------- /docs/diagram/digits.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/digits.png -------------------------------------------------------------------------------- /docs/diagram/dml-stmt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/dml-stmt.png -------------------------------------------------------------------------------- /docs/diagram/drop-index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/drop-index.png -------------------------------------------------------------------------------- /docs/diagram/drop-primary-index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/drop-primary-index.png -------------------------------------------------------------------------------- /docs/diagram/drop-view-index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/drop-view-index.png -------------------------------------------------------------------------------- /docs/diagram/e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/e.png -------------------------------------------------------------------------------- /docs/diagram/element-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/element-expr.png -------------------------------------------------------------------------------- /docs/diagram/elements.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/elements.png -------------------------------------------------------------------------------- /docs/diagram/escaped-identifier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/escaped-identifier.png -------------------------------------------------------------------------------- /docs/diagram/execute.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/execute.png -------------------------------------------------------------------------------- /docs/diagram/existential-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/existential-expr.png -------------------------------------------------------------------------------- /docs/diagram/exists-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/exists-expr.png -------------------------------------------------------------------------------- /docs/diagram/exp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/exp.png -------------------------------------------------------------------------------- /docs/diagram/expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/expr.png -------------------------------------------------------------------------------- /docs/diagram/field-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/field-expr.png -------------------------------------------------------------------------------- /docs/diagram/first-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/first-expr.png -------------------------------------------------------------------------------- /docs/diagram/first.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/first.png -------------------------------------------------------------------------------- /docs/diagram/for-iter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/for-iter.png -------------------------------------------------------------------------------- /docs/diagram/for-map.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/for-map.png -------------------------------------------------------------------------------- /docs/diagram/for.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/for.png -------------------------------------------------------------------------------- /docs/diagram/frac.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/frac.png -------------------------------------------------------------------------------- /docs/diagram/from-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/from-clause.png -------------------------------------------------------------------------------- /docs/diagram/from-path.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/from-path.png -------------------------------------------------------------------------------- /docs/diagram/from-select-core.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/from-select-core.png -------------------------------------------------------------------------------- /docs/diagram/from-select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/from-select.png -------------------------------------------------------------------------------- /docs/diagram/from-term.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/from-term.png -------------------------------------------------------------------------------- /docs/diagram/full-case.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/full-case.png -------------------------------------------------------------------------------- /docs/diagram/fullpath.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/fullpath.png -------------------------------------------------------------------------------- /docs/diagram/function-call.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/function-call.png -------------------------------------------------------------------------------- /docs/diagram/function-name.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/function-name.png -------------------------------------------------------------------------------- /docs/diagram/function.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/function.png -------------------------------------------------------------------------------- /docs/diagram/group-by-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/group-by-clause.png -------------------------------------------------------------------------------- /docs/diagram/having-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/having-clause.png -------------------------------------------------------------------------------- /docs/diagram/hex-digit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/hex-digit.png -------------------------------------------------------------------------------- /docs/diagram/identifier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/identifier.png -------------------------------------------------------------------------------- /docs/diagram/if.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/if.png -------------------------------------------------------------------------------- /docs/diagram/in-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/in-expr.png -------------------------------------------------------------------------------- /docs/diagram/index-name.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/index-name.png -------------------------------------------------------------------------------- /docs/diagram/index-stmt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/index-stmt.png -------------------------------------------------------------------------------- /docs/diagram/index-using.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/index-using.png -------------------------------------------------------------------------------- /docs/diagram/index-with.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/index-with.png -------------------------------------------------------------------------------- /docs/diagram/init.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/init.png -------------------------------------------------------------------------------- /docs/diagram/insert-select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/insert-select.png -------------------------------------------------------------------------------- /docs/diagram/insert-values.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/insert-values.png -------------------------------------------------------------------------------- /docs/diagram/insert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/insert.png -------------------------------------------------------------------------------- /docs/diagram/int.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/int.png -------------------------------------------------------------------------------- /docs/diagram/join-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/join-clause.png -------------------------------------------------------------------------------- /docs/diagram/join-type.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/join-type.png -------------------------------------------------------------------------------- /docs/diagram/key-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/key-clause.png -------------------------------------------------------------------------------- /docs/diagram/key-var.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/key-var.png -------------------------------------------------------------------------------- /docs/diagram/keys-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/keys-clause.png -------------------------------------------------------------------------------- /docs/diagram/keyspace-ref.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/keyspace-ref.png -------------------------------------------------------------------------------- /docs/diagram/keyspace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/keyspace.png -------------------------------------------------------------------------------- /docs/diagram/label-name.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/label-name.png -------------------------------------------------------------------------------- /docs/diagram/label.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/label.png -------------------------------------------------------------------------------- /docs/diagram/let-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/let-clause.png -------------------------------------------------------------------------------- /docs/diagram/letting-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/letting-clause.png -------------------------------------------------------------------------------- /docs/diagram/lexpr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/lexpr.png -------------------------------------------------------------------------------- /docs/diagram/limit-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/limit-clause.png -------------------------------------------------------------------------------- /docs/diagram/line-comment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/line-comment.png -------------------------------------------------------------------------------- /docs/diagram/literal-value.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/literal-value.png -------------------------------------------------------------------------------- /docs/diagram/literal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/literal.png -------------------------------------------------------------------------------- /docs/diagram/logical-term.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/logical-term.png -------------------------------------------------------------------------------- /docs/diagram/loop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/loop.png -------------------------------------------------------------------------------- /docs/diagram/map-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/map-expr.png -------------------------------------------------------------------------------- /docs/diagram/mcond.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/mcond.png -------------------------------------------------------------------------------- /docs/diagram/members.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/members.png -------------------------------------------------------------------------------- /docs/diagram/merge-actions.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/merge-actions.png -------------------------------------------------------------------------------- /docs/diagram/merge-delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/merge-delete.png -------------------------------------------------------------------------------- /docs/diagram/merge-insert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/merge-insert.png -------------------------------------------------------------------------------- /docs/diagram/merge-source.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/merge-source.png -------------------------------------------------------------------------------- /docs/diagram/merge-update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/merge-update.png -------------------------------------------------------------------------------- /docs/diagram/merge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/merge.png -------------------------------------------------------------------------------- /docs/diagram/mexpr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/mexpr.png -------------------------------------------------------------------------------- /docs/diagram/name-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/name-expr.png -------------------------------------------------------------------------------- /docs/diagram/name-var.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/name-var.png -------------------------------------------------------------------------------- /docs/diagram/named-bucket-ref.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/named-bucket-ref.png -------------------------------------------------------------------------------- /docs/diagram/named-keyspace-ref.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/named-keyspace-ref.png -------------------------------------------------------------------------------- /docs/diagram/namespace.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/namespace.png -------------------------------------------------------------------------------- /docs/diagram/nest-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/nest-clause.png -------------------------------------------------------------------------------- /docs/diagram/nested-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/nested-expr.png -------------------------------------------------------------------------------- /docs/diagram/non-zero-digit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/non-zero-digit.png -------------------------------------------------------------------------------- /docs/diagram/number.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/number.png -------------------------------------------------------------------------------- /docs/diagram/object.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/object.png -------------------------------------------------------------------------------- /docs/diagram/offset-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/offset-clause.png -------------------------------------------------------------------------------- /docs/diagram/on-keys-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/on-keys-clause.png -------------------------------------------------------------------------------- /docs/diagram/order-by-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/order-by-clause.png -------------------------------------------------------------------------------- /docs/diagram/ordering-term.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/ordering-term.png -------------------------------------------------------------------------------- /docs/diagram/pair.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/pair.png -------------------------------------------------------------------------------- /docs/diagram/partition.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/partition.png -------------------------------------------------------------------------------- /docs/diagram/pass.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/pass.png -------------------------------------------------------------------------------- /docs/diagram/path-for.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/path-for.png -------------------------------------------------------------------------------- /docs/diagram/path.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/path.png -------------------------------------------------------------------------------- /docs/diagram/pool-name.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/pool-name.png -------------------------------------------------------------------------------- /docs/diagram/prepare.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/prepare.png -------------------------------------------------------------------------------- /docs/diagram/query.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/query.png -------------------------------------------------------------------------------- /docs/diagram/range-cond.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/range-cond.png -------------------------------------------------------------------------------- /docs/diagram/range-xform.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/range-xform.png -------------------------------------------------------------------------------- /docs/diagram/rcvexpr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/rcvexpr.png -------------------------------------------------------------------------------- /docs/diagram/rcvop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/rcvop.png -------------------------------------------------------------------------------- /docs/diagram/reduce-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/reduce-expr.png -------------------------------------------------------------------------------- /docs/diagram/result-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/result-expr.png -------------------------------------------------------------------------------- /docs/diagram/return.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/return.png -------------------------------------------------------------------------------- /docs/diagram/returning-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/returning-clause.png -------------------------------------------------------------------------------- /docs/diagram/rollback.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/rollback.png -------------------------------------------------------------------------------- /docs/diagram/rr-1.31.721.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/rr-1.31.721.png -------------------------------------------------------------------------------- /docs/diagram/rr-1.33.807.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/rr-1.33.807.png -------------------------------------------------------------------------------- /docs/diagram/rr-1.35.837.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/rr-1.35.837.png -------------------------------------------------------------------------------- /docs/diagram/rr-1.36.893.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/rr-1.36.893.png -------------------------------------------------------------------------------- /docs/diagram/rr-1.38.952.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/rr-1.38.952.png -------------------------------------------------------------------------------- /docs/diagram/rr-1.39.959.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/rr-1.39.959.png -------------------------------------------------------------------------------- /docs/diagram/searched-case-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/searched-case-expr.png -------------------------------------------------------------------------------- /docs/diagram/searched-case.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/searched-case.png -------------------------------------------------------------------------------- /docs/diagram/select-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/select-clause.png -------------------------------------------------------------------------------- /docs/diagram/select-core.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/select-core.png -------------------------------------------------------------------------------- /docs/diagram/select-for.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/select-for.png -------------------------------------------------------------------------------- /docs/diagram/select-from-core.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/select-from-core.png -------------------------------------------------------------------------------- /docs/diagram/select-from.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/select-from.png -------------------------------------------------------------------------------- /docs/diagram/select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/select.png -------------------------------------------------------------------------------- /docs/diagram/sendop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/sendop.png -------------------------------------------------------------------------------- /docs/diagram/set-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/set-clause.png -------------------------------------------------------------------------------- /docs/diagram/set-op.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/set-op.png -------------------------------------------------------------------------------- /docs/diagram/simple-case-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/simple-case-expr.png -------------------------------------------------------------------------------- /docs/diagram/slice-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/slice-expr.png -------------------------------------------------------------------------------- /docs/diagram/start.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/start.png -------------------------------------------------------------------------------- /docs/diagram/stmt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/stmt.png -------------------------------------------------------------------------------- /docs/diagram/string.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/string.png -------------------------------------------------------------------------------- /docs/diagram/subpath.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/subpath.png -------------------------------------------------------------------------------- /docs/diagram/subquery-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/subquery-expr.png -------------------------------------------------------------------------------- /docs/diagram/subquery.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/subquery.png -------------------------------------------------------------------------------- /docs/diagram/subselect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/subselect.png -------------------------------------------------------------------------------- /docs/diagram/terminated-stmt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/terminated-stmt.png -------------------------------------------------------------------------------- /docs/diagram/transaction-stmt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/transaction-stmt.png -------------------------------------------------------------------------------- /docs/diagram/truncate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/truncate.png -------------------------------------------------------------------------------- /docs/diagram/uint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/uint.png -------------------------------------------------------------------------------- /docs/diagram/unescaped-identifier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/unescaped-identifier.png -------------------------------------------------------------------------------- /docs/diagram/unnest-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/unnest-clause.png -------------------------------------------------------------------------------- /docs/diagram/unset-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/unset-clause.png -------------------------------------------------------------------------------- /docs/diagram/unset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/unset.png -------------------------------------------------------------------------------- /docs/diagram/update-for.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/update-for.png -------------------------------------------------------------------------------- /docs/diagram/update.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/update.png -------------------------------------------------------------------------------- /docs/diagram/upsert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/upsert.png -------------------------------------------------------------------------------- /docs/diagram/use-keys-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/use-keys-clause.png -------------------------------------------------------------------------------- /docs/diagram/using.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/using.png -------------------------------------------------------------------------------- /docs/diagram/val-var.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/val-var.png -------------------------------------------------------------------------------- /docs/diagram/value-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/value-clause.png -------------------------------------------------------------------------------- /docs/diagram/values-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/values-clause.png -------------------------------------------------------------------------------- /docs/diagram/var.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/var.png -------------------------------------------------------------------------------- /docs/diagram/variable.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/variable.png -------------------------------------------------------------------------------- /docs/diagram/view-index-stmt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/view-index-stmt.png -------------------------------------------------------------------------------- /docs/diagram/where-clause.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/where-clause.png -------------------------------------------------------------------------------- /docs/diagram/while.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/while.png -------------------------------------------------------------------------------- /docs/diagram/within-expr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/docs/diagram/within-expr.png -------------------------------------------------------------------------------- /parser/n1ql/README.md: -------------------------------------------------------------------------------- 1 | The generated parser is already included this repo. 2 | 3 | These instructions are only required for developers modifying the 4 | parser. 5 | 6 | ### Building Parser 7 | 8 | 1. Install nex - https://github.com/blynn/nex 9 | 2. Install go's yacc tool - http://golang.org/cmd/yacc/ 10 | 3. Run build.sh 11 | -------------------------------------------------------------------------------- /parser/n1ql/build.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | echo nex n1ql.nex 4 | nex n1ql.nex 5 | echo go tool yacc n1ql.y 6 | go tool yacc n1ql.y 7 | echo go build 8 | go build 9 | -------------------------------------------------------------------------------- /server/cbq-engine/build.sh: -------------------------------------------------------------------------------- 1 | echo go build 2 | go build 3 | git update-index --assume-unchanged start-cbq-engine.sh 4 | -------------------------------------------------------------------------------- /server/cbq-engine/start-cbq-engine.sh: -------------------------------------------------------------------------------- 1 | export NS_SERVER_CBAUTH_URL="http://localhost:9000/_cbauth" 2 | export NS_SERVER_CBAUTH_USER="Administrator" 3 | export NS_SERVER_CBAUTH_PWD="asdasd" 4 | export NS_SERVER_CBAUTH_RPC_URL="http://127.0.0.1:9000/cbauth-demo" 5 | 6 | ./cbq-engine "$@" 7 | -------------------------------------------------------------------------------- /shell/cbq/build.sh: -------------------------------------------------------------------------------- 1 | echo go build 2 | go build 3 | -------------------------------------------------------------------------------- /test/json/default/README.md: -------------------------------------------------------------------------------- 1 | Sample data for tests, demos, tutorials, etc. 2 | 3 | Please do NOT write tests against the "tutorial" dataset. It will change over time to better support the tutorial. 4 | 5 | Note: if you modify existing data in these subdirectories, you may 6 | break existing "black box" test cases. An alternative would be to 7 | make your own copied subdirectories. 8 | 9 | Black box test cases are stored as just more JSON data in the cases 10 | subdirectory. This allows us to use tuqtng to inspect the test cases 11 | of tuqtng (e.g., count the number of test cases that use "GROUP BY"). 12 | -------------------------------------------------------------------------------- /test/json/default/articles1/article-34.json: -------------------------------------------------------------------------------- 1 | {"id":"article-34"} -------------------------------------------------------------------------------- /test/json/default/articles1/article-35.json: -------------------------------------------------------------------------------- 1 | {"id":"article-35","tags":["beer","mayan"]} -------------------------------------------------------------------------------- /test/json/default/articles1/article-36.json: -------------------------------------------------------------------------------- 1 | {"id":"article-36","tags":["beer","wine"]} -------------------------------------------------------------------------------- /test/json/default/articles1/article-37.json: -------------------------------------------------------------------------------- 1 | {"id":"article-37","tags":["beer","threemusketeers"]} -------------------------------------------------------------------------------- /test/json/default/articles1/article-38.json: -------------------------------------------------------------------------------- 1 | {"id":"article-38","tags":["threemusketeers","terabithia"]} -------------------------------------------------------------------------------- /test/json/default/articles1/article-39.json: -------------------------------------------------------------------------------- 1 | {"id":"article-39","tags":["beer"]} -------------------------------------------------------------------------------- /test/json/default/articles2/article-34.json: -------------------------------------------------------------------------------- 1 | {"id":"article-34","categories":["beer"],"published-on":"2012/12/12"} -------------------------------------------------------------------------------- /test/json/default/articles2/article-35.json: -------------------------------------------------------------------------------- 1 | {"id":"article-35","categories":["movies"]} -------------------------------------------------------------------------------- /test/json/default/articles2/article-36.json: -------------------------------------------------------------------------------- 1 | {"id":"article-36","categories":["beer","entertainment"]} -------------------------------------------------------------------------------- /test/json/default/articles2/article-37.json: -------------------------------------------------------------------------------- 1 | {"id":"article-37","categories":["physics","science"]} -------------------------------------------------------------------------------- /test/json/default/articles2/article-38.json: -------------------------------------------------------------------------------- 1 | {"id":"article-38","categories":["science"]} -------------------------------------------------------------------------------- /test/json/default/articles2/article-39.json: -------------------------------------------------------------------------------- 1 | {"id":"article-39","categories":["beer"],"published-on":"2011/01/01"} -------------------------------------------------------------------------------- /test/json/default/blog/123.json: -------------------------------------------------------------------------------- 1 | {"type":"post", "id":"123", "title":"i love beeer"} -------------------------------------------------------------------------------- /test/json/default/blog/124.json: -------------------------------------------------------------------------------- 1 | {"type":"post", "id":"124", "title":"i love beeer more", 2 | "comments":[]} -------------------------------------------------------------------------------- /test/json/default/blog/125.json: -------------------------------------------------------------------------------- 1 | {"type":"post", "id":"125", "title":"wine is best", 2 | "comments":[{"msg":"you're wrong"}, 3 | {"msg":"beer is better"} 4 | ]} -------------------------------------------------------------------------------- /test/json/default/blog/126.json: -------------------------------------------------------------------------------- 1 | {"type":"post", "id":"126", "title":"i luv alcohol", 2 | "comments":[{"msg":"can't argue with that"}, 3 | {"msg":"but beer is better"}, 4 | {"msg":"+1"} 5 | ]} -------------------------------------------------------------------------------- /test/json/default/cases/case_distinct.json: -------------------------------------------------------------------------------- 1 | [ 2 | 3 | { 4 | "statements": "SELECT DISTINCT parent FROM default:categories1 ORDER BY parent", 5 | "results": [ 6 | {}, 7 | { 8 | "parent": "entertainment" 9 | }, 10 | { 11 | "parent": "science" 12 | } 13 | ] 14 | } 15 | ] 16 | 17 | -------------------------------------------------------------------------------- /test/json/default/cases/case_error.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "statements": "this isn't a query", 4 | "error": "this is a bad query" 5 | }, 6 | { 7 | "statements": "SELECT * FROM", 8 | "error": "missing a FROM bucket" 9 | }, 10 | { 11 | "statements": "SELECT * FROM default:contacts USE KEYS [\"dave\", \"jane\", \"ian\"] UNNEST contacts.contacts", 12 | "error" : "Duplicate UNNEST alias contacts" 13 | } 14 | ] 15 | -------------------------------------------------------------------------------- /test/json/default/cases/case_non-json.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "statements": "SELECT * FROM default:`non-json`", 4 | "results": [ { 5 | "non-json": "hello" 6 | }, 7 | { 8 | "non-json": "world" 9 | } 10 | ] 11 | } 12 | ] 13 | -------------------------------------------------------------------------------- /test/json/default/cases/fixme: -------------------------------------------------------------------------------- 1 | // Set of test cases that need to be fixed 2 | 3 | SELECT VALUE() FROM default:catalog.tags 4 | select value() from default:catalog.tags[:3] as slice 5 | select value() from catalog.tags[0:3] as slice 6 | -------------------------------------------------------------------------------- /test/json/default/cases/untested/case_distinct.json: -------------------------------------------------------------------------------- 1 | [ 2 | 3 | { 4 | "statements": "SELECT DISTINCT parent FROM categories1", 5 | "results": [ 6 | { 7 | "parent": "entertainment" 8 | }, 9 | {}, 10 | { 11 | "parent": "science" 12 | } 13 | ] 14 | } 15 | ] 16 | 17 | -------------------------------------------------------------------------------- /test/json/default/cases/untested/case_error.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "statements": "this isn't a query", 4 | "error": "this is a bad query" 5 | }, 6 | { 7 | "statements": "SELECT * FROM", 8 | "error": "missing a FROM bucket" 9 | } 10 | ] 11 | -------------------------------------------------------------------------------- /test/json/default/cases/untested/case_non-json.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "statements": "SELECT * FROM non-json", 4 | "results": [ {}, {} ] 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /test/json/default/categories1/beer.json: -------------------------------------------------------------------------------- 1 | {"name":"beer","parent":"entertainment"} -------------------------------------------------------------------------------- /test/json/default/categories1/entertainment.json: -------------------------------------------------------------------------------- 1 | {"name":"entertainment"} -------------------------------------------------------------------------------- /test/json/default/categories1/movies.json: -------------------------------------------------------------------------------- 1 | {"name":"movies","parent":"entertainment"} -------------------------------------------------------------------------------- /test/json/default/categories1/physics.json: -------------------------------------------------------------------------------- 1 | {"name":"physics","parent":"science"} -------------------------------------------------------------------------------- /test/json/default/categories1/science.json: -------------------------------------------------------------------------------- 1 | {"name":"science"} -------------------------------------------------------------------------------- /test/json/default/categories2/entertainment.json: -------------------------------------------------------------------------------- 1 | {"name":"entertainment", 2 | "subcategories":["beer", "movies"]} -------------------------------------------------------------------------------- /test/json/default/categories2/science.json: -------------------------------------------------------------------------------- 1 | {"name":"science", 2 | "subcategories":["physics"]} -------------------------------------------------------------------------------- /test/json/default/complex_json/1.json: -------------------------------------------------------------------------------- 1 | { 2 | 3 | "a" : 1, 4 | "b" : { "c" : { "e" : [5,6], "f" : [7,8] }, "d" : "2" }, 5 | "b.c" : 4, 6 | "b.c.e" : 9, 7 | "b.c.f" : 10, 8 | "c.d" : 11 9 | } 10 | 11 | -------------------------------------------------------------------------------- /test/json/default/complex_json/2.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "a" : "str", 4 | "b" : 5, 5 | "b.c" : 5, 6 | "b.c.e" : 9, 7 | "c.d" : 10 8 | } 9 | -------------------------------------------------------------------------------- /test/json/default/complex_json/3.json: -------------------------------------------------------------------------------- 1 | { 2 | "a" : null, 3 | "b" : 5, 4 | "b.c.f" : 6 5 | } 6 | -------------------------------------------------------------------------------- /test/json/default/complex_json/4.json: -------------------------------------------------------------------------------- 1 | { 2 | "a" : true, 3 | "b.c.f" : ["0", "1"] 4 | } 5 | -------------------------------------------------------------------------------- /test/json/default/complex_json/5.json: -------------------------------------------------------------------------------- 1 | { 2 | "a" : [0, 1], 3 | "b.c.f" : [7 ,8] 4 | } 5 | -------------------------------------------------------------------------------- /test/json/default/complex_json/6.json: -------------------------------------------------------------------------------- 1 | { 2 | "a" : { "f1" : 1, "f2" : 2 }, 3 | "b.c.f" : true, 4 | "a.b_c.d" : 99 5 | } 6 | -------------------------------------------------------------------------------- /test/json/default/contacts/dave.json: -------------------------------------------------------------------------------- 1 | {"type":"contact", 2 | "name":"dave", 3 | "children":[ 4 | {"name":"aiden","age":17,"gender":"m"}, 5 | {"name":"bill","age":2,"gender":"f"} 6 | ], 7 | "hobbies":["golf", "surfing"] 8 | } 9 | -------------------------------------------------------------------------------- /test/json/default/contacts/earl.json: -------------------------------------------------------------------------------- 1 | {"type":"contact", 2 | "name":"earl", 3 | "children":[ 4 | {"name":"xena","age":17,"gender":"f"}, 5 | {"name":"yuri","age":2,"gender":"m"} 6 | ], 7 | "hobbies":["surfing"] 8 | } 9 | -------------------------------------------------------------------------------- /test/json/default/contacts/fred.json: -------------------------------------------------------------------------------- 1 | {"type":"contact", 2 | "name":"fred", 3 | "hobbies":["golf","surfing"] 4 | } 5 | -------------------------------------------------------------------------------- /test/json/default/contacts/harry.json: -------------------------------------------------------------------------------- 1 | {"type":"contact", 2 | "name":"harry" 3 | } 4 | -------------------------------------------------------------------------------- /test/json/default/contacts/ian.json: -------------------------------------------------------------------------------- 1 | {"type":"contact", 2 | "name":"ian", 3 | "children":[ 4 | {"name":"abama","age":17,"gender":"m"}, 5 | {"name":"bebama","age":21,"gender":"m"} 6 | ], 7 | "hobbies":["golf", "surfing"] 8 | } 9 | -------------------------------------------------------------------------------- /test/json/default/contacts/jane.json: -------------------------------------------------------------------------------- 1 | {"type":"contact", 2 | "name":"jane", 3 | "contacts": [ 4 | { 5 | "name": "fred" 6 | }, 7 | { 8 | "name": "sheela" 9 | } 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /test/json/default/couchbase_cases/case_meta.json: -------------------------------------------------------------------------------- 1 | [ 2 | 3 | { 4 | "statements": "SELECT META() AS meta FROM catalog WHERE META().id = \"book1\"", 5 | "results": [ 6 | { 7 | "meta": { 8 | "id":"book1", 9 | "cas":2, 10 | "type":"json", 11 | "flags":0 12 | } 13 | } 14 | ] 15 | } 16 | ] -------------------------------------------------------------------------------- /test/json/default/game/damien.json: -------------------------------------------------------------------------------- 1 | {"type":"player","id":"damien","score":10,"roles":["beta"]} -------------------------------------------------------------------------------- /test/json/default/game/dustin.json: -------------------------------------------------------------------------------- 1 | {"type":"player","id":"dustin","score":10} -------------------------------------------------------------------------------- /test/json/default/game/junyi.json: -------------------------------------------------------------------------------- 1 | {"type":"player","id":"junyi","score":100,"roles":["map-editor","GM"]} -------------------------------------------------------------------------------- /test/json/default/game/marty.json: -------------------------------------------------------------------------------- 1 | {"type":"player","id":"marty","score":8,"roles":["beta","alpha"]} -------------------------------------------------------------------------------- /test/json/default/game/steve.json: -------------------------------------------------------------------------------- 1 | {"type":"player","id":"steve","score":1,"roles":["emp"]} -------------------------------------------------------------------------------- /test/json/default/jobs/1.json: -------------------------------------------------------------------------------- 1 | { 2 | "job_title": "Support", 3 | "join_yr": 2010 4 | } -------------------------------------------------------------------------------- /test/json/default/jobs/2.json: -------------------------------------------------------------------------------- 1 | { 2 | "job_title": "Support", 3 | "join_yr": 2011 4 | } -------------------------------------------------------------------------------- /test/json/default/jobs/3.json: -------------------------------------------------------------------------------- 1 | { 2 | "job_title": "Engineer", 3 | "join_yr": 2010 4 | } -------------------------------------------------------------------------------- /test/json/default/jobs/4.json: -------------------------------------------------------------------------------- 1 | { 2 | "job_title": "Engineer", 3 | "join_yr": 2011 4 | } -------------------------------------------------------------------------------- /test/json/default/jobs/5.json: -------------------------------------------------------------------------------- 1 | { 2 | "job_title": "Sales", 3 | "join_yr": 2010 4 | } -------------------------------------------------------------------------------- /test/json/default/jobs/6.json: -------------------------------------------------------------------------------- 1 | { 2 | "job_title": "Sales", 3 | "join_yr": 2011 4 | } -------------------------------------------------------------------------------- /test/json/default/jobs/7.json: -------------------------------------------------------------------------------- 1 | { 2 | "job_title": "Sales", 3 | "join_yr": 2011 4 | } -------------------------------------------------------------------------------- /test/json/default/mixed/A.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": "A" 3 | } -------------------------------------------------------------------------------- /test/json/default/mixed/a_string.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": "a" 3 | } -------------------------------------------------------------------------------- /test/json/default/mixed/aa.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": "aa" 3 | } -------------------------------------------------------------------------------- /test/json/default/mixed/empty_array.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": [] 3 | } -------------------------------------------------------------------------------- /test/json/default/mixed/empty_object.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": {} 3 | } -------------------------------------------------------------------------------- /test/json/default/mixed/false.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": false 3 | } -------------------------------------------------------------------------------- /test/json/default/mixed/longer_string_array.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": ["a", "b", "c"] 3 | } -------------------------------------------------------------------------------- /test/json/default/mixed/missing.json: -------------------------------------------------------------------------------- 1 | { 2 | } -------------------------------------------------------------------------------- /test/json/default/mixed/negative_big_number.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": -1000000.5 3 | } -------------------------------------------------------------------------------- /test/json/default/mixed/negative_small_number.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": -3 3 | } -------------------------------------------------------------------------------- /test/json/default/mixed/null.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": null 3 | } -------------------------------------------------------------------------------- /test/json/default/mixed/numeric_array.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": [5.0] 3 | } -------------------------------------------------------------------------------- /test/json/default/mixed/one_key_numeric_object.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": { 3 | "key1": 5 4 | } 5 | } -------------------------------------------------------------------------------- /test/json/default/mixed/one_key_string.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": { 3 | "key1": "a" 4 | } 5 | } -------------------------------------------------------------------------------- /test/json/default/mixed/positive_big_number.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": 1000000.5 3 | } -------------------------------------------------------------------------------- /test/json/default/mixed/positive_small_number.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": 3 3 | } -------------------------------------------------------------------------------- /test/json/default/mixed/string_array.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": ["a"] 3 | } -------------------------------------------------------------------------------- /test/json/default/mixed/true.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": true 3 | } -------------------------------------------------------------------------------- /test/json/default/mixed/two_key_object.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": { 3 | "key1": 5, 4 | "key2": 6 5 | } 6 | } -------------------------------------------------------------------------------- /test/json/default/mixed/two_key_reversed_object.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": { 3 | "key2": 6, 4 | "key1": 5 5 | } 6 | } -------------------------------------------------------------------------------- /test/json/default/mixed/zero.json: -------------------------------------------------------------------------------- 1 | { 2 | "field": 0 3 | } -------------------------------------------------------------------------------- /test/json/default/non-json/000.json: -------------------------------------------------------------------------------- 1 | "hello" -------------------------------------------------------------------------------- /test/json/default/non-json/001.json: -------------------------------------------------------------------------------- 1 | "world" 2 | -------------------------------------------------------------------------------- /test/json/default/orders-marty/1.json: -------------------------------------------------------------------------------- 1 | { 2 | "customer": "marty", 3 | "items": [ 4 | { 5 | "id": "0001", 6 | "price": 1000.00, 7 | "name": "coffee", 8 | "quantity": 1 9 | }, 10 | { 11 | "id": "0002", 12 | "price": 100.00, 13 | "name": "tea", 14 | "quantity": 2 15 | } 16 | ], 17 | "payments": [ 18 | { 19 | "type": "giftcard", 20 | "amount": 300 21 | }, 22 | { 23 | "type": "creditcard", 24 | "amount": 900 25 | } 26 | ], 27 | "total": 1200.00 28 | } 29 | -------------------------------------------------------------------------------- /test/json/default/orders-marty/2.json: -------------------------------------------------------------------------------- 1 | { 2 | "customer": "steve", 3 | "items": [ 4 | { 5 | "id": "0001", 6 | "price": 1000.00, 7 | "name": "coffee", 8 | "quantity": 1 9 | }, 10 | { 11 | "id": "0002", 12 | "price": 100.00, 13 | "name": "tea", 14 | "quantity": 1 15 | }, 16 | { 17 | "id": "0003", 18 | "price": 100.00, 19 | "name": "clipboard", 20 | "quantity": 10 21 | } 22 | ], 23 | "payments": [ 24 | { 25 | "type": "giftcard", 26 | "amount": 200 27 | }, 28 | { 29 | "type": "creditcard", 30 | "amount": 1900 31 | } 32 | ], 33 | "total": 2100.00 34 | } 35 | -------------------------------------------------------------------------------- /test/json/default/orders/1200.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1200", 3 | "custId":"abc", 4 | "shipped-on":"2012/01/02", 5 | "orderlines":[{"qty":1,"productId":"coffee01"}, 6 | {"qty":1,"productId":"sugar22"}]} -------------------------------------------------------------------------------- /test/json/default/orders/1234.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1234", 3 | "custId":"bbb", 4 | "orderlines":[{"qty":2,"productId":"coffee01"}, 5 | {"qty":1,"productId":"tea111"}]} -------------------------------------------------------------------------------- /test/json/default/orders/1235.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1235", 3 | "custId":"ccc", 4 | "orderlines":[{"qty":1,"productId":"tea111"}, 5 | {"qty":1,"productId":"sugar22"}]} -------------------------------------------------------------------------------- /test/json/default/orders/1236.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1236", 3 | "custId":"ccc", 4 | "shipped-on":null, 5 | "orderlines":[{"qty":1,"productId":"coffee01"}, 6 | {"qty":1,"productId":"sugar22"}]} -------------------------------------------------------------------------------- /test/json/default/orders2/1000.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1000", 3 | "custId":"earl", 4 | "shipped-on":"2012/01/02", 5 | "orderlines":[{"qty":1,"productId":"coffee01"}, 6 | {"qty":1,"productId":"sugar22"}]} 7 | -------------------------------------------------------------------------------- /test/json/default/orders2/1100.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1100", 3 | "custId":"dave", 4 | "shipped-on":"2012/01/02", 5 | "orderlines":[{"qty":1,"productId":"coffee01"}, 6 | {"qty":1,"productId":"sugar22"}]} 7 | -------------------------------------------------------------------------------- /test/json/default/orders2/1111.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1111", 3 | "custId":"harry", 4 | "orderlines":[{"qty":2,"productId":"coffee01"}, 5 | {"qty":1,"productId":"tea111"}]} 6 | -------------------------------------------------------------------------------- /test/json/default/orders2/1134.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1134", 3 | "custId":"jane", 4 | "orderlines":[{"qty":2,"productId":"coffee01"}, 5 | {"qty":1,"productId":"tea111"}]} 6 | -------------------------------------------------------------------------------- /test/json/default/orders2/1135.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1135", 3 | "custId":"ian", 4 | "orderlines":[{"qty":1,"productId":"tea111"}, 5 | {"qty":1,"productId":"sugar22"}]} 6 | -------------------------------------------------------------------------------- /test/json/default/orders2/1136.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1136", 3 | "custId":"harry", 4 | "shipped-on":null, 5 | "orderlines":[{"qty":1,"productId":"coffee01"}, 6 | {"qty":1,"productId":"sugar22"}]} 7 | -------------------------------------------------------------------------------- /test/json/default/orders2/1200.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1200", 3 | "custId":"jane", 4 | "shipped-on":"2012/01/02", 5 | "orderlines":[{"qty":1,"productId":"coffee01"}, 6 | {"qty":1,"productId":"sugar22"}]} 7 | -------------------------------------------------------------------------------- /test/json/default/orders2/1222.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1222", 3 | "custId":"fred", 4 | "orderlines":[{"qty":1,"productId":"tea111"}, 5 | {"qty":1,"productId":"sugar22"}]} 6 | -------------------------------------------------------------------------------- /test/json/default/orders2/1234.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1234", 3 | "custId":"fred", 4 | "orderlines":[{"qty":2,"productId":"coffee01"}, 5 | {"qty":1,"productId":"tea111"}]} 6 | -------------------------------------------------------------------------------- /test/json/default/orders2/1235.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1235", 3 | "custId":"jane", 4 | "orderlines":[{"qty":1,"productId":"tea111"}, 5 | {"qty":1,"productId":"sugar22"}]} 6 | -------------------------------------------------------------------------------- /test/json/default/orders2/1236.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1236", 3 | "custId":"ian", 4 | "shipped-on":null, 5 | "orderlines":[{"qty":1,"productId":"coffee01"}, 6 | {"qty":1,"productId":"sugar22"}]} 7 | -------------------------------------------------------------------------------- /test/json/default/orders2/1333.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1333", 3 | "custId":"dave", 4 | "shipped-on":null, 5 | "orderlines":[{"qty":1,"productId":"coffee01"}, 6 | {"qty":1,"productId":"sugar22"}]} 7 | -------------------------------------------------------------------------------- /test/json/default/orders2/1444.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1333", 3 | "custId":"manik", 4 | "shipped-on":null, 5 | "orderlines":[{"qty":1,"productId":"coffee01"}, 6 | {"qty":1,"productId":"sugar22"}]} 7 | -------------------------------------------------------------------------------- /test/json/default/orders3/1222.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1222", 3 | "customers":["fred","dave"], 4 | "orderlines":[{"qty":1,"productId":"tea111"}, 5 | {"qty":1,"productId":"sugar22"}]} 6 | -------------------------------------------------------------------------------- /test/json/default/orders3/1234.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1234", 3 | "customers":["fred", "ian"], 4 | "orderlines":[{"qty":2,"productId":"coffee01"}, 5 | {"qty":1,"productId":"tea111"}]} 6 | -------------------------------------------------------------------------------- /test/json/default/orders3/1235.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1235", 3 | "customers":["jane","earl"], 4 | "orderlines":[{"qty":1,"productId":"tea111"}, 5 | {"qty":1,"productId":"sugar22"}]} 6 | -------------------------------------------------------------------------------- /test/json/default/orders3/1236.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1236", 3 | "customers":["ian", "jane", "fred", "dave"], 4 | "shipped-on":null, 5 | "orderlines":[{"qty":1,"productId":"coffee01"}, 6 | {"qty":1,"productId":"sugar22"}]} 7 | -------------------------------------------------------------------------------- /test/json/default/orders3/1373.json: -------------------------------------------------------------------------------- 1 | {"type":"order", 2 | "id":"1373", 3 | "customers":["manik","gerald"], 4 | "orderlines":[{"qty":1,"productId":"tea111"}, 5 | {"qty":1,"productId":"sugar22"}]} 6 | -------------------------------------------------------------------------------- /test/json/default/products/coffee01.json: -------------------------------------------------------------------------------- 1 | {"type":"product","id":"coffee01","vendorId":"X"} -------------------------------------------------------------------------------- /test/json/default/products/sugar22.json: -------------------------------------------------------------------------------- 1 | {"type":"product","id":"sugar22","vendorId":"v200"} -------------------------------------------------------------------------------- /test/json/default/products/tea111.json: -------------------------------------------------------------------------------- 1 | {"type":"product","id":"tea111","vendorId":"v200"} -------------------------------------------------------------------------------- /test/json/default/tags/beer.json: -------------------------------------------------------------------------------- 1 | {"name":"beer"} -------------------------------------------------------------------------------- /test/json/default/tags/cmusketeers.json: -------------------------------------------------------------------------------- 1 | {"name":"threemusketeers","banned-on":"2001/12/07"} 2 | -------------------------------------------------------------------------------- /test/json/default/tags/mayan.json: -------------------------------------------------------------------------------- 1 | {"name":"mayan","banned-on":null} -------------------------------------------------------------------------------- /test/json/default/tags/terabithia.json: -------------------------------------------------------------------------------- 1 | {"name":"terabithia","banned-on":"2012/02/02"} -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T103929516925.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed May 30 22:00:09 2012", 5 | "order_id": "T103929516925" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 308 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 318, 14 | "pct_discount": 5, 15 | "product_id": "P3109994453", 16 | "sale_price": 303 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T104951629322.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Jan 25 22:00:09 2013", 5 | "order_id": "T104951629322" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 667 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 869, 14 | "pct_discount": 25, 15 | "product_id": "P9992686339", 16 | "sale_price": 652 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 15, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Priority" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T105343889104.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Jun 28 22:00:09 2013", 5 | "order_id": "T105343889104" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 272 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 285, 14 | "pct_discount": 10, 15 | "product_id": "P9642733945", 16 | "sale_price": 257 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 15, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Priority" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T117520554954.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Tue Apr 16 22:00:10 2013", 5 | "order_id": "T117520554954" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 892 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 928, 14 | "pct_discount": 5, 15 | "product_id": "P7239272589", 16 | "sale_price": 882 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 10, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Overnight" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T118033252098.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Jul 13 22:00:09 2012", 5 | "order_id": "T118033252098" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Reward Points", 9 | "total_charges": 597 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 700, 14 | "pct_discount": 15, 15 | "product_id": "P3304253835", 16 | "sale_price": 595 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T123328374845.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon May 13 22:00:10 2013", 5 | "order_id": "T123328374845" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 523 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 612, 14 | "pct_discount": 15, 15 | "product_id": "P9587053557", 16 | "sale_price": 521 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T124328404710.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Sep 17 22:00:10 2012", 5 | "order_id": "T124328404710" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 419 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 517, 14 | "pct_discount": 20, 15 | "product_id": "P3163882134", 16 | "sale_price": 414 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T125563021576.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Mar 24 22:00:10 2012", 5 | "order_id": "T125563021576" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Reward Points", 9 | "total_charges": 433 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 470, 14 | "pct_discount": 10, 15 | "product_id": "P3725954639", 16 | "sale_price": 423 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 10, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Overnight" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T126656844929.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Oct 15 22:00:10 2012", 5 | "order_id": "T126656844929" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 97 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 102, 14 | "pct_discount": 10, 15 | "product_id": "P2507753355", 16 | "sale_price": 92 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T128064097943.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Thu Dec 6 22:00:10 2012", 5 | "order_id": "T128064097943" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 342 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 415, 14 | "pct_discount": 20, 15 | "product_id": "P4055634515", 16 | "sale_price": 332 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 10, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Overnight" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T129953161367.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Jul 13 22:00:09 2013", 5 | "order_id": "T129953161367" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 247 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 306, 14 | "pct_discount": 20, 15 | "product_id": "P3777393148", 16 | "sale_price": 245 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T138062011396.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Jun 8 22:00:09 2013", 5 | "order_id": "T138062011396" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 835 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 868, 14 | "pct_discount": 5, 15 | "product_id": "P7899356234", 16 | "sale_price": 825 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 10, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Overnight" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T138839139972.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Apr 20 22:00:09 2012", 5 | "order_id": "T138839139972" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Cash On Delivery", 9 | "total_charges": 96 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 125, 14 | "pct_discount": 25, 15 | "product_id": "P1738384931", 16 | "sale_price": 94 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T141621392299.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Jan 19 22:00:09 2013", 5 | "order_id": "T141621392299" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Reward Points", 9 | "total_charges": 692 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 858, 14 | "pct_discount": 20, 15 | "product_id": "P1568153567", 16 | "sale_price": 687 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T149428995904.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Oct 27 22:00:10 2012", 5 | "order_id": "T149428995904" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Reward Points", 9 | "total_charges": 109 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 123, 14 | "pct_discount": 20, 15 | "product_id": "P1447156481", 16 | "sale_price": 99 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 10, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Overnight" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T155361194178.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Nov 22 22:00:11 2013", 5 | "order_id": "T155361194178" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Reward Points", 9 | "total_charges": 533 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 703, 14 | "pct_discount": 25, 15 | "product_id": "P1653742847", 16 | "sale_price": 528 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T164757435719.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Thu Oct 17 22:00:10 2013", 5 | "order_id": "T164757435719" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Reward Points", 9 | "total_charges": 190 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 211, 14 | "pct_discount": 15, 15 | "product_id": "P6365254084", 16 | "sale_price": 180 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 10, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Overnight" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T167743839920.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Thu Oct 11 22:00:10 2012", 5 | "order_id": "T167743839920" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Reward Points", 9 | "total_charges": 725 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 959, 14 | "pct_discount": 25, 15 | "product_id": "P8938506448", 16 | "sale_price": 720 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T177061031781.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Thu Mar 1 22:00:10 2012", 5 | "order_id": "T177061031781" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Cash On Delivery", 9 | "total_charges": 646 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 753, 14 | "pct_discount": 15, 15 | "product_id": "P3631724104", 16 | "sale_price": 641 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T179729807373.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Jun 7 22:00:10 2013", 5 | "order_id": "T179729807373" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 592 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 786, 14 | "pct_discount": 25, 15 | "product_id": "P9031285961", 16 | "sale_price": 590 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T180130284234.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Tue Oct 11 22:00:10 2011", 5 | "order_id": "T180130284234" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Cash On Delivery", 9 | "total_charges": 404 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 498, 14 | "pct_discount": 20, 15 | "product_id": "P5396376887", 16 | "sale_price": 399 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T182359454499.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Thu Aug 22 22:00:09 2013", 5 | "order_id": "T182359454499" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 759 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 837, 14 | "pct_discount": 10, 15 | "product_id": "P4999155556", 16 | "sale_price": 754 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T182622186757.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Sep 7 22:00:10 2013", 5 | "order_id": "T182622186757" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Reward Points", 9 | "total_charges": 688 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 747, 14 | "pct_discount": 10, 15 | "product_id": "P1562422653", 16 | "sale_price": 673 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 15, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Priority" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T183428307793.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Oct 15 22:00:11 2012", 5 | "order_id": "T183428307793" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Cash On Delivery", 9 | "total_charges": 651 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 683, 14 | "pct_discount": 5, 15 | "product_id": "P3705096321", 16 | "sale_price": 649 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T185231122745.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Dec 22 22:00:09 2013", 5 | "order_id": "T185231122745" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 478 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 525, 14 | "pct_discount": 10, 15 | "product_id": "P1035665011", 16 | "sale_price": 473 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T205356703947.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed Mar 27 22:00:11 2013", 5 | "order_id": "T205356703947" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 302 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 374, 14 | "pct_discount": 20, 15 | "product_id": "P3647523939", 16 | "sale_price": 300 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T209065534457.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Thu May 3 22:00:09 2012", 5 | "order_id": "T209065534457" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Reward Points", 9 | "total_charges": 77 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 90, 14 | "pct_discount": 20, 15 | "product_id": "P8980966995", 16 | "sale_price": 72 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T214749702558.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed May 23 22:00:10 2012", 5 | "order_id": "T214749702558" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 205 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 229, 14 | "pct_discount": 15, 15 | "product_id": "P7635742908", 16 | "sale_price": 195 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 10, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Overnight" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T214948712062.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Oct 4 22:00:09 2013", 5 | "order_id": "T214948712062" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 146 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 156, 14 | "pct_discount": 10, 15 | "product_id": "P2692866607", 16 | "sale_price": 141 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T222837463060.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed Mar 20 22:00:10 2013", 5 | "order_id": "T222837463060" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 403 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 534, 14 | "pct_discount": 25, 15 | "product_id": "P4064702963", 16 | "sale_price": 401 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T223543881404.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Jan 12 22:00:09 2013", 5 | "order_id": "T223543881404" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 371 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 395, 14 | "pct_discount": 10, 15 | "product_id": "P4409396169", 16 | "sale_price": 356 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 15, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Priority" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T234668559772.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Jul 14 22:00:10 2012", 5 | "order_id": "T234668559772" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 126 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 147, 14 | "pct_discount": 25, 15 | "product_id": "P2366765786", 16 | "sale_price": 111 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 15, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Priority" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T236369091384.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Apr 15 22:00:09 2013", 5 | "order_id": "T236369091384" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Reward Points", 9 | "total_charges": 207 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 202, 14 | "pct_discount": 5, 15 | "product_id": "P4099924563", 16 | "sale_price": 192 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 15, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Priority" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T236720831384.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Jan 19 22:00:09 2013", 5 | "order_id": "T236720831384" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Reward Points", 9 | "total_charges": 578 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 750, 14 | "pct_discount": 25, 15 | "product_id": "P7575482358", 16 | "sale_price": 563 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 15, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Priority" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T237156399157.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Jul 15 22:00:10 2013", 5 | "order_id": "T237156399157" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 243 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 245, 14 | "pct_discount": 5, 15 | "product_id": "P1448543933", 16 | "sale_price": 233 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 10, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Overnight" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T238254936907.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Feb 17 22:00:09 2013", 5 | "order_id": "T238254936907" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 747 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 866, 14 | "pct_discount": 15, 15 | "product_id": "P2070174786", 16 | "sale_price": 737 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 10, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Overnight" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T240229095892.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed Nov 14 22:00:10 2012", 5 | "order_id": "T240229095892" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Reward Points", 9 | "total_charges": 802 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 888, 14 | "pct_discount": 10, 15 | "product_id": "P3497166344", 16 | "sale_price": 800 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T245742914084.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed Sep 12 22:00:09 2012", 5 | "order_id": "T245742914084" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Reward Points", 9 | "total_charges": 128 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 148, 14 | "pct_discount": 15, 15 | "product_id": "P8657013527", 16 | "sale_price": 126 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T247556584854.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Apr 8 22:00:09 2013", 5 | "order_id": "T247556584854" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Cash On Delivery", 9 | "total_charges": 753 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 938, 14 | "pct_discount": 20, 15 | "product_id": "P2986974323", 16 | "sale_price": 751 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T249349897826.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Aug 31 22:00:09 2012", 5 | "order_id": "T249349897826" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 402 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 483, 14 | "pct_discount": 20, 15 | "product_id": "P4486573724", 16 | "sale_price": 387 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 15, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Priority" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T259428665225.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Tue Jul 24 22:00:10 2012", 5 | "order_id": "T259428665225" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 601 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 665, 14 | "pct_discount": 10, 15 | "product_id": "P8778616002", 16 | "sale_price": 599 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T261724988417.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Tue Jul 10 22:00:10 2012", 5 | "order_id": "T261724988417" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Reward Points", 9 | "total_charges": 46 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 40, 14 | "pct_discount": 10, 15 | "product_id": "P1784906817", 16 | "sale_price": 36 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 10, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Overnight" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T267147628219.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Feb 2 22:00:10 2013", 5 | "order_id": "T267147628219" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 354 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 429, 14 | "pct_discount": 20, 15 | "product_id": "P8858423326", 16 | "sale_price": 344 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 10, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Overnight" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T269244435090.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Aug 2 22:00:09 2013", 5 | "order_id": "T269244435090" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 238 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 295, 14 | "pct_discount": 20, 15 | "product_id": "P8992264240", 16 | "sale_price": 236 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T274454114807.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Feb 17 22:00:10 2013", 5 | "order_id": "T274454114807" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 337 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 408, 14 | "pct_discount": 20, 15 | "product_id": "P2633093469", 16 | "sale_price": 327 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 10, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Overnight" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T279321819861.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Sep 15 22:00:09 2012", 5 | "order_id": "T279321819861" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 95 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 106, 14 | "pct_discount": 25, 15 | "product_id": "P6789683027", 16 | "sale_price": 80 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 15, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Priority" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T283736056955.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed Jul 18 22:00:09 2012", 5 | "order_id": "T283736056955" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 893 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 934, 14 | "pct_discount": 5, 15 | "product_id": "P4520104215", 16 | "sale_price": 888 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T284048333904.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed Jun 12 22:00:10 2013", 5 | "order_id": "T284048333904" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 405 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 444, 14 | "pct_discount": 10, 15 | "product_id": "P9586632938", 16 | "sale_price": 400 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T293239669325.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed Jan 11 22:00:10 2012", 5 | "order_id": "T293239669325" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 610 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 756, 14 | "pct_discount": 20, 15 | "product_id": "P8213386130", 16 | "sale_price": 605 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T314236716840.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Apr 9 22:00:09 2012", 5 | "order_id": "T314236716840" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 193 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 187, 14 | "pct_discount": 5, 15 | "product_id": "P2642592119", 16 | "sale_price": 178 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 15, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Priority" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T322634729755.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed Jul 17 22:00:10 2013", 5 | "order_id": "T322634729755" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 788 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 813, 14 | "pct_discount": 5, 15 | "product_id": "P8450803803", 16 | "sale_price": 773 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 15, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Priority" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T330335361508.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Nov 4 22:00:09 2012", 5 | "order_id": "T330335361508" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 831 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 917, 14 | "pct_discount": 10, 15 | "product_id": "P9141752754", 16 | "sale_price": 826 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T346854065421.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Aug 18 22:00:10 2012", 5 | "order_id": "T346854065421" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 45 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 42, 14 | "pct_discount": 5, 15 | "product_id": "P5997304384", 16 | "sale_price": 40 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T367948558705.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Aug 4 22:00:10 2013", 5 | "order_id": "T367948558705" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 504 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 627, 14 | "pct_discount": 20, 15 | "product_id": "P3428662235", 16 | "sale_price": 502 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T368441127044.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed May 22 22:00:10 2013", 5 | "order_id": "T368441127044" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 609 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 710, 14 | "pct_discount": 15, 15 | "product_id": "P4864092316", 16 | "sale_price": 604 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T375243641855.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Aug 8 22:00:09 2011", 5 | "order_id": "T375243641855" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 714 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 945, 14 | "pct_discount": 25, 15 | "product_id": "P5530054642", 16 | "sale_price": 709 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T387830456929.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Apr 29 22:00:10 2012", 5 | "order_id": "T387830456929" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 49 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 58, 14 | "pct_discount": 20, 15 | "product_id": "P1346864943", 16 | "sale_price": 47 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T387939872520.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed Apr 17 22:00:10 2013", 5 | "order_id": "T387939872520" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 633 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 664, 14 | "pct_discount": 5, 15 | "product_id": "P6046374158", 16 | "sale_price": 631 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T402320858473.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Apr 6 22:00:09 2013", 5 | "order_id": "T402320858473" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 645 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 752, 14 | "pct_discount": 15, 15 | "product_id": "P3908695267", 16 | "sale_price": 640 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T402321796426.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed Mar 6 22:00:10 2013", 5 | "order_id": "T402321796426" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 61 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 54, 14 | "pct_discount": 15, 15 | "product_id": "P8374825289", 16 | "sale_price": 46 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 15, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Priority" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T440564675703.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Sep 16 22:00:09 2013", 5 | "order_id": "T440564675703" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 75 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 82, 14 | "pct_discount": 15, 15 | "product_id": "P2606903692", 16 | "sale_price": 70 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T450021497472.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Jan 4 22:00:09 2013", 5 | "order_id": "T450021497472" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 835 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 979, 14 | "pct_discount": 15, 15 | "product_id": "P5608214973", 16 | "sale_price": 833 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T451450262181.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Aug 18 22:00:09 2013", 5 | "order_id": "T451450262181" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 337 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 394, 14 | "pct_discount": 15, 15 | "product_id": "P7307155990", 16 | "sale_price": 335 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T466245491733.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Thu May 23 22:00:09 2013", 5 | "order_id": "T466245491733" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 579 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 769, 14 | "pct_discount": 25, 15 | "product_id": "P8268644225", 16 | "sale_price": 577 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T466337106525.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Nov 24 22:00:09 2013", 5 | "order_id": "T466337106525" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 332 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 435, 14 | "pct_discount": 25, 15 | "product_id": "P6624285232", 16 | "sale_price": 327 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T490767747884.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat May 14 22:00:09 2011", 5 | "order_id": "T490767747884" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 303 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 350, 14 | "pct_discount": 15, 15 | "product_id": "P8300676693", 16 | "sale_price": 298 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T504647326095.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Oct 4 22:00:11 2013", 5 | "order_id": "T504647326095" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 329 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 359, 14 | "pct_discount": 10, 15 | "product_id": "P6799762514", 16 | "sale_price": 324 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T504820118089.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Apr 20 22:00:09 2012", 5 | "order_id": "T504820118089" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 423 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 491, 14 | "pct_discount": 15, 15 | "product_id": "P4654493879", 16 | "sale_price": 418 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T523068014139.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed Jun 20 22:00:10 2012", 5 | "order_id": "T523068014139" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 352 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 411, 14 | "pct_discount": 15, 15 | "product_id": "P9147086398", 16 | "sale_price": 350 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T527139094719.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Jun 7 22:00:11 2013", 5 | "order_id": "T527139094719" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 631 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 834, 14 | "pct_discount": 25, 15 | "product_id": "P5046475372", 16 | "sale_price": 626 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T529631237314.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Tue Jan 22 22:00:10 2013", 5 | "order_id": "T529631237314" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 77 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 82, 14 | "pct_discount": 25, 15 | "product_id": "P3311093517", 16 | "sale_price": 62 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 15, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Priority" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T532526784267.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Tue Jun 25 22:00:09 2013", 5 | "order_id": "T532526784267" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 385 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 450, 14 | "pct_discount": 15, 15 | "product_id": "P4330555037", 16 | "sale_price": 383 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T539738244674.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Dec 24 22:00:10 2012", 5 | "order_id": "T539738244674" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 166 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 158, 14 | "pct_discount": 5, 15 | "product_id": "P6373095555", 16 | "sale_price": 151 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 15, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Priority" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T545064239003.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Jul 8 22:00:09 2013", 5 | "order_id": "T545064239003" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 241 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 262, 14 | "pct_discount": 10, 15 | "product_id": "P4130473966", 16 | "sale_price": 236 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T546950011310.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed Jun 12 22:00:09 2013", 5 | "order_id": "T546950011310" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 684 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 754, 14 | "pct_discount": 10, 15 | "product_id": "P8006132061", 16 | "sale_price": 679 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T555249396948.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Feb 26 22:00:10 2012", 5 | "order_id": "T555249396948" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 796 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 992, 14 | "pct_discount": 20, 15 | "product_id": "P3025314415", 16 | "sale_price": 794 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T564444649548.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Tue Mar 12 22:00:09 2013", 5 | "order_id": "T564444649548" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 476 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 628, 14 | "pct_discount": 25, 15 | "product_id": "P9261743151", 16 | "sale_price": 471 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T573145204032.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Thu Aug 4 22:00:09 2011", 5 | "order_id": "T573145204032" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 569 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 666, 14 | "pct_discount": 15, 15 | "product_id": "P9315874155", 16 | "sale_price": 567 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T580741965822.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Aug 1 22:00:09 2011", 5 | "order_id": "T580741965822" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 702 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 823, 14 | "pct_discount": 15, 15 | "product_id": "P6540563094", 16 | "sale_price": 700 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T580945593818.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Tue Mar 12 22:00:09 2013", 5 | "order_id": "T580945593818" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 151 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 162, 14 | "pct_discount": 10, 15 | "product_id": "P1185332157", 16 | "sale_price": 146 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T582925621506.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed Nov 27 22:00:09 2013", 5 | "order_id": "T582925621506" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 193 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 224, 14 | "pct_discount": 15, 15 | "product_id": "P2239922270", 16 | "sale_price": 191 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T585551542590.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Jun 28 22:00:10 2013", 5 | "order_id": "T585551542590" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 322 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 372, 14 | "pct_discount": 15, 15 | "product_id": "P3597535457", 16 | "sale_price": 317 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T597164508171.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Sep 24 22:00:10 2011", 5 | "order_id": "T597164508171" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 691 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 914, 14 | "pct_discount": 25, 15 | "product_id": "P1672265099", 16 | "sale_price": 686 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T613546125943.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat May 19 22:00:10 2012", 5 | "order_id": "T613546125943" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 158 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 180, 14 | "pct_discount": 15, 15 | "product_id": "P1491764467", 16 | "sale_price": 153 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T632629028329.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Dec 28 22:00:10 2012", 5 | "order_id": "T632629028329" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 66 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 59, 14 | "pct_discount": 15, 15 | "product_id": "P3700185593", 16 | "sale_price": 51 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 15, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Priority" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T645255981124.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Sep 7 22:00:11 2013", 5 | "order_id": "T645255981124" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 404 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 502, 14 | "pct_discount": 20, 15 | "product_id": "P9598523686", 16 | "sale_price": 402 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T646249424084.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Tue Oct 15 22:00:09 2013", 5 | "order_id": "T646249424084" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 333 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 389, 14 | "pct_discount": 15, 15 | "product_id": "P1655803101", 16 | "sale_price": 331 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T651152156778.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Thu Jul 25 22:00:09 2013", 5 | "order_id": "T651152156778" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 235 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 291, 14 | "pct_discount": 20, 15 | "product_id": "P3727613766", 16 | "sale_price": 233 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T656631131201.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Thu Dec 1 22:00:10 2011", 5 | "order_id": "T656631131201" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 458 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 570, 14 | "pct_discount": 20, 15 | "product_id": "P2330233534", 16 | "sale_price": 456 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T671825381704.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Jan 27 22:00:09 2013", 5 | "order_id": "T671825381704" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Reward Points", 9 | "total_charges": 75 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 73, 14 | "pct_discount": 5, 15 | "product_id": "P4747422744", 16 | "sale_price": 70 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T672221288208.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Feb 18 22:00:09 2013", 5 | "order_id": "T672221288208" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 506 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 556, 14 | "pct_discount": 10, 15 | "product_id": "P2736672790", 16 | "sale_price": 501 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T675447094917.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Aug 26 22:00:10 2013", 5 | "order_id": "T675447094917" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 555 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 611, 14 | "pct_discount": 10, 15 | "product_id": "P8665095923", 16 | "sale_price": 550 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T677233511602.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Jul 29 22:00:09 2013", 5 | "order_id": "T677233511602" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 530 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 555, 14 | "pct_discount": 5, 15 | "product_id": "P3476296738", 16 | "sale_price": 528 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T680066008979.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Sep 16 22:00:10 2012", 5 | "order_id": "T680066008979" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 35 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 38, 14 | "pct_discount": 15, 15 | "product_id": "P1326903524", 16 | "sale_price": 33 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T689254152898.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed Sep 11 22:00:09 2013", 5 | "order_id": "T689254152898" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 347 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 383, 14 | "pct_discount": 10, 15 | "product_id": "P7850345850", 16 | "sale_price": 345 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T700840132149.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Oct 16 22:00:10 2011", 5 | "order_id": "T700840132149" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 39 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 30, 14 | "pct_discount": 5, 15 | "product_id": "P7867062956", 16 | "sale_price": 29 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 10, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Overnight" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T703068425987.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Aug 5 22:00:11 2012", 5 | "order_id": "T703068425987" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 66 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 62, 14 | "pct_discount": 10, 15 | "product_id": "P7771903542", 16 | "sale_price": 56 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 10, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Overnight" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T718546683894.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Apr 21 22:00:10 2012", 5 | "order_id": "T718546683894" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 455 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 476, 14 | "pct_discount": 5, 15 | "product_id": "P7678695215", 16 | "sale_price": 453 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T721262742560.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Nov 15 22:00:11 2013", 5 | "order_id": "T721262742560" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 319 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 333, 14 | "pct_discount": 5, 15 | "product_id": "P8332992886", 16 | "sale_price": 317 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T722569831208.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat May 25 22:00:10 2013", 5 | "order_id": "T722569831208" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 639 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 796, 14 | "pct_discount": 20, 15 | "product_id": "P6980236119", 16 | "sale_price": 637 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T729243037283.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Apr 2 22:00:09 2012", 5 | "order_id": "T729243037283" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 506 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 671, 14 | "pct_discount": 25, 15 | "product_id": "P2589755201", 16 | "sale_price": 504 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T729940525745.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Jun 17 22:00:10 2013", 5 | "order_id": "T729940525745" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 837 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 927, 14 | "pct_discount": 10, 15 | "product_id": "P9431414114", 16 | "sale_price": 835 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T769348087819.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Feb 19 22:00:11 2012", 5 | "order_id": "T769348087819" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 553 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 608, 14 | "pct_discount": 10, 15 | "product_id": "P1512413007", 16 | "sale_price": 548 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T772851595562.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Thu May 24 22:00:09 2012", 5 | "order_id": "T772851595562" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 472 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 552, 14 | "pct_discount": 15, 15 | "product_id": "P3639716392", 16 | "sale_price": 470 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T772859202679.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Jan 18 22:00:09 2013", 5 | "order_id": "T772859202679" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 680 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 794, 14 | "pct_discount": 15, 15 | "product_id": "P4915183016", 16 | "sale_price": 675 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T788422224413.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed Oct 31 22:00:09 2012", 5 | "order_id": "T788422224413" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 398 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 403, 14 | "pct_discount": 5, 15 | "product_id": "P8004494685", 16 | "sale_price": 383 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 15, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Priority" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T811331484570.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Jul 16 22:00:10 2012", 5 | "order_id": "T811331484570" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 425 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 528, 14 | "pct_discount": 20, 15 | "product_id": "P6031004524", 16 | "sale_price": 423 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T812851042648.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Jan 2 22:00:09 2012", 5 | "order_id": "T812851042648" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 145 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 175, 14 | "pct_discount": 20, 15 | "product_id": "P2273243645", 16 | "sale_price": 140 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T820227777057.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Feb 15 22:00:09 2013", 5 | "order_id": "T820227777057" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 543 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 721, 14 | "pct_discount": 25, 15 | "product_id": "P6837304250", 16 | "sale_price": 541 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T822543165641.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Mar 18 22:00:09 2012", 5 | "order_id": "T822543165641" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 336 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 389, 14 | "pct_discount": 15, 15 | "product_id": "P5190792310", 16 | "sale_price": 331 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T824430588755.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Tue Dec 11 22:00:09 2012", 5 | "order_id": "T824430588755" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 139 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 144, 14 | "pct_discount": 5, 15 | "product_id": "P2524806273", 16 | "sale_price": 137 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T841642507924.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Apr 7 22:00:09 2013", 5 | "order_id": "T841642507924" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 567 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 661, 14 | "pct_discount": 15, 15 | "product_id": "P7615755308", 16 | "sale_price": 562 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T849726961912.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Jan 26 22:00:09 2013", 5 | "order_id": "T849726961912" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 728 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 968, 14 | "pct_discount": 25, 15 | "product_id": "P7344052143", 16 | "sale_price": 726 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T854237276537.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Dec 20 22:00:09 2013", 5 | "order_id": "T854237276537" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 522 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 646, 14 | "pct_discount": 20, 15 | "product_id": "P3930876144", 16 | "sale_price": 517 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T861848999722.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Mar 4 22:00:10 2012", 5 | "order_id": "T861848999722" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 161 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 187, 14 | "pct_discount": 15, 15 | "product_id": "P6045236629", 16 | "sale_price": 159 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T883659895619.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Aug 11 22:00:09 2012", 5 | "order_id": "T883659895619" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 486 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 645, 14 | "pct_discount": 25, 15 | "product_id": "P5256714372", 16 | "sale_price": 484 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T901926226467.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Thu Jul 25 22:00:09 2013", 5 | "order_id": "T901926226467" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 777 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 908, 14 | "pct_discount": 15, 15 | "product_id": "P4809352640", 16 | "sale_price": 772 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T906657403311.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Fri Mar 8 22:00:09 2013", 5 | "order_id": "T906657403311" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 185 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 199, 14 | "pct_discount": 10, 15 | "product_id": "P1698596243", 16 | "sale_price": 180 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T926629881796.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Jan 20 22:00:10 2013", 5 | "order_id": "T926629881796" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 150 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 173, 14 | "pct_discount": 15, 15 | "product_id": "P1435084415", 16 | "sale_price": 148 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T938257799752.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Thu May 16 22:00:10 2013", 5 | "order_id": "T938257799752" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 55 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 62, 14 | "pct_discount": 20, 15 | "product_id": "P6831504787", 16 | "sale_price": 50 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T944145023603.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Apr 14 22:00:09 2013", 5 | "order_id": "T944145023603" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 234 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 286, 14 | "pct_discount": 20, 15 | "product_id": "P4522196233", 16 | "sale_price": 229 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T952631322242.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Mon Aug 20 22:00:10 2012", 5 | "order_id": "T952631322242" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 509 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 592, 14 | "pct_discount": 15, 15 | "product_id": "P1419482163", 16 | "sale_price": 504 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T956120393594.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Dec 29 22:00:10 2012", 5 | "order_id": "T956120393594" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 46 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 43, 14 | "pct_discount": 5, 15 | "product_id": "P8633162013", 16 | "sale_price": 41 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T959025942927.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Tue Dec 10 22:00:09 2013", 5 | "order_id": "T959025942927" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Debit Card", 9 | "total_charges": 149 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 183, 14 | "pct_discount": 20, 15 | "product_id": "P4554695994", 16 | "sale_price": 147 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 2, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Regular" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T974148797695.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Wed Aug 8 22:00:09 2012", 5 | "order_id": "T974148797695" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Reward Points", 9 | "total_charges": 84 10 | }, 11 | "product_details": { 12 | "currency": "USD", 13 | "list_price": 98, 14 | "pct_discount": 20, 15 | "product_id": "P5903953455", 16 | "sale_price": 79 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T984729317603.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sat Jul 13 22:00:09 2013", 5 | "order_id": "T984729317603" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "Credit Card", 9 | "total_charges": 201 10 | }, 11 | "product_details": { 12 | "currency": "GBP", 13 | "list_price": 230, 14 | "pct_discount": 15, 15 | "product_id": "P8249643343", 16 | "sale_price": 196 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /test/json/default/users_with_orders/T984966304337.json: -------------------------------------------------------------------------------- 1 | { 2 | "doc_type": "order", 3 | "order_details": { 4 | "order_datetime": "Sun Oct 6 22:00:09 2013", 5 | "order_id": "T984966304337" 6 | }, 7 | "payment_details": { 8 | "payment_mode": "NetBanking", 9 | "total_charges": 635 10 | }, 11 | "product_details": { 12 | "currency": "EUR", 13 | "list_price": 839, 14 | "pct_discount": 25, 15 | "product_id": "P2719115329", 16 | "sale_price": 630 17 | }, 18 | "shipping_details": { 19 | "shipping_charges": 5, 20 | "shipping_status": "Delivered", 21 | "shipping_type": "Express" 22 | } 23 | } -------------------------------------------------------------------------------- /tutorial/README.md: -------------------------------------------------------------------------------- 1 | To run the tutorial... 2 | 3 | * Go to http://cbfs-ext.hq.couchbase.com/tuqtng/ 4 | * Download tutorial.zip and extract it, to say ~/tutorial 5 | * Download server and save it to same directory, ~/tutorial 6 | * Open two consoles, cd to ~/tutorial in each and run: 7 | 8 | ```Shell 9 | ./cbq-engine -couchbase dir:test -pool json 10 | ./tutorial 11 | ``` 12 | 13 | * Visit http://localhost:8000 with your browser. 14 | -------------------------------------------------------------------------------- /tutorial/build.sh: -------------------------------------------------------------------------------- 1 | echo go build 2 | go build 3 | -------------------------------------------------------------------------------- /tutorial/content/images/activeshopper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/tutorial/content/images/activeshopper.png -------------------------------------------------------------------------------- /tutorial/content/images/coffeecup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/tutorial/content/images/coffeecup.png -------------------------------------------------------------------------------- /tutorial/content/images/coupons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/tutorial/content/images/coupons.png -------------------------------------------------------------------------------- /tutorial/content/images/ecommerce.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/tutorial/content/images/ecommerce.png -------------------------------------------------------------------------------- /tutorial/content/images/howzipworks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/tutorial/content/images/howzipworks.png -------------------------------------------------------------------------------- /tutorial/content/images/onedaysale.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/tutorial/content/images/onedaysale.png -------------------------------------------------------------------------------- /tutorial/content/images/purchaseorder.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/tutorial/content/images/purchaseorder.png -------------------------------------------------------------------------------- /tutorial/content/images/reviews.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/tutorial/content/images/reviews.png -------------------------------------------------------------------------------- /tutorial/content/images/salesmam.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/tutorial/content/images/salesmam.png -------------------------------------------------------------------------------- /tutorial/content/images/searchknowhow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/tutorial/content/images/searchknowhow.png -------------------------------------------------------------------------------- /tutorial/content/images/sortby.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/tutorial/content/images/sortby.png -------------------------------------------------------------------------------- /tutorial/content/images/top10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/tutorial/content/images/top10.png -------------------------------------------------------------------------------- /tutorial/content/images/top3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/tutorial/content/images/top3.png -------------------------------------------------------------------------------- /tutorial/content/images/webpagination.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/tutorial/content/images/webpagination.png -------------------------------------------------------------------------------- /tutorial/content/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/tutorial/content/logo.png -------------------------------------------------------------------------------- /tutorial/content/slide-1.md: -------------------------------------------------------------------------------- 1 | ## Section 1. N1QL Basics 2 | Welcome to the Couchbase N1QL tutorial! 3 | 4 | N1QL (pronounced as “nickel”) is Couchbase’s next generation query language. N1QL aims to meet the query needs of distributed document-oriented databases. This document specifies the syntax and semantics of the SELECT statement in N1QL. 5 | 6 | The N1QL data model derives its name from the non-first normal form, which is a superset and generalization of the relational first normal form (1NF). 7 | 8 | On the right hand side you see a query editor. 9 | 10 | Go ahead, run your first query now! 11 | 12 |
13 | SELECT 'Hello World' AS Greeting
14 | 
15 | -------------------------------------------------------------------------------- /tutorial/content/slide-10.md: -------------------------------------------------------------------------------- 1 | ## Select DISTINCT 2 | 3 | The DISTINCT keyword can be used to eliminate duplicates from the output. 4 | 5 | The query on the right, used the DISTINCT keyword in the SELECT statement to produce a set of 2 unique results. 6 | 7 | Try removing the DISTINCT keyword from the query to see the difference. 8 | 9 |
10 |     SELECT DISTINCT orderlines[0].productId
11 |         FROM orders
12 | 
13 | -------------------------------------------------------------------------------- /tutorial/content/slide-11.md: -------------------------------------------------------------------------------- 1 | ## NULL and Missing Values 2 | 3 | JSON documents can contain explicit NULL values and omit fields entirely. The IS/IS NOT NULL/MISSING family of operators lets you test these conditions. 4 | 5 | The query on the right looks for people where the children field is explicitly set to NULL. 6 | 7 | Try changing the query to IS MISSING. 8 | 9 |
10 | 	SELECT fname, children
11 | 		FROM tutorial 
12 | 			WHERE children IS NULL
13 | 
14 | -------------------------------------------------------------------------------- /tutorial/content/slide-13.md: -------------------------------------------------------------------------------- 1 | ## Combining Multiple Conditions with AND 2 | 3 | The AND operator allows us to match documents satisfying two or more conditions. 4 | 5 | In the example on the right we only return people having at least one child and having a gmail address. 6 | 7 | Try changing AND to OR. 8 | 9 |
10 | SELECT fname, email, children
11 |     FROM tutorial 
12 |         WHERE ARRAY_LENGTH(children) > 0 AND email LIKE '%@gmail.com'
13 | 
14 | -------------------------------------------------------------------------------- /tutorial/content/slide-14.md: -------------------------------------------------------------------------------- 1 | ## Querying primary keys 2 | 3 | Specific primary keys within a bucket can be queried using the USE KEYS clause. The argument should be an array. 4 | 5 | The query on the right fetches a list of keys from the bucket tutorial. 6 | 7 | An arbitary expression can be used as an argument to the USE KEYS clause as long as it evaluates to an array or a single element 8 | 9 |
10 |     SELECT fname, email
11 |         FROM tutorial 
12 |             USE KEYS ["dave", "ian"]
13 | 
14 | -------------------------------------------------------------------------------- /tutorial/content/slide-15.md: -------------------------------------------------------------------------------- 1 | ## Array Operations and Slicing 2 | 3 | Array slicing refers to using a subset of an array. N1QL allows slices to appear anywhere that other expressions can appear. 4 | 5 | The query on the right will return all the children between offset 0 and 2 6 | 7 | N1QL also supports ARRAY functions such as ARRAY_PREPEND, ARRAY_APPEND and ARRAY_CONCAT. Try typing out the following query 8 | 9 | 10 | SELECT ARRAY_CONCAT(children[0:1], children[1:]) FROM tutorial 11 | 12 | 13 |
14 | SELECT children[0:2] 
15 |     FROM tutorial 
16 |         WHERE children[0:2] IS NOT MISSING
17 | 
18 | 19 | 20 | -------------------------------------------------------------------------------- /tutorial/content/slide-17.md: -------------------------------------------------------------------------------- 1 | ## Ordering results with ORDER BY clause 2 | 3 | Queries can optionally include an ORDER BY clause describing how the results should be sorted. 4 | 5 | In the example on the right we ask that the people be listed by age in ascending order. 6 | 7 | Try adding DESC after age. 8 | 9 |
10 | SELECT fname, age 
11 |     FROM tutorial 
12 |         ORDER BY age
13 | 
14 | -------------------------------------------------------------------------------- /tutorial/content/slide-18.md: -------------------------------------------------------------------------------- 1 | ## Pagination with LIMIT/OFFSET 2 | 3 | Sometimes queries return a large number of results and it can be helpful to process them in smaller batches. After processing a smaller batch, you also want to skip over a batch to process the next one. 4 | 5 | In the example on the right we ask that it return no more than 2 results. 6 | 7 | Try adding OFFSET 2 to get the next 2 results. 8 | 9 |
10 | SELECT fname, age
11 |     FROM tutorial 
12 |         ORDER BY age 
13 |             LIMIT 2
14 | 
-------------------------------------------------------------------------------- /tutorial/content/slide-19.md: -------------------------------------------------------------------------------- 1 | ## Aggregate Functions 2 | 3 | Sometimes you want information about a whole group of data. 4 | 5 | In the example on the right we use the COUNT() function to tell us how many documents are in the bucket. 6 | 7 |
 8 | SELECT COUNT(*) AS count
 9 |     FROM tutorial 
10 | 
-------------------------------------------------------------------------------- /tutorial/content/slide-20.md: -------------------------------------------------------------------------------- 1 | ## Grouping data with GROUP BY 2 | 3 | Sometimes you want to break the data up into your own groups. 4 | 5 | In this example we form groups based on our relation to the person. 6 | 7 |
 8 | SELECT relation, COUNT(*) AS count
 9 |     FROM tutorial
10 |         GROUP BY relation
11 | 
-------------------------------------------------------------------------------- /tutorial/content/slide-21.md: -------------------------------------------------------------------------------- 1 | ## Filtering Grouped Data with HAVING 2 | 3 | Sometimes you want to filter which groups are returned. 4 | 5 | Similar to filter documents with the WHERE clause we can filter groups with the HAVING clause. 6 | 7 | Here we filter to only include groups with more than 1 member. 8 | 9 |
10 | SELECT relation, COUNT(*) AS count
11 |     FROM tutorial
12 |         GROUP BY relation
13 |         	HAVING COUNT(*) > 1
14 | 
-------------------------------------------------------------------------------- /tutorial/content/slide-22.md: -------------------------------------------------------------------------------- 1 | ## Array Comprehensions 2 | 3 | Array comprehensions allow you to build new arrays from existing ones. 4 | 5 | In the example on the right we build a new array containing just the children's names for all people that have children. 6 | 7 |
 8 | 	SELECT 
 9 | 	    ARRAY child.fname FOR child IN tutorial.children END AS children_names
10 |   		FROM tutorial 
11 | 		    WHERE children IS NOT NULL
12 | 
13 | -------------------------------------------------------------------------------- /tutorial/content/slide-27.md: -------------------------------------------------------------------------------- 1 | ## UNNEST clause 2 | 3 | The UNNEST clause allow us to take the contents of nested arrays and join them with the parent object. 4 | 5 | Some people in the tutorial database have an array of children. If we had 3 people, each with 2 children, we would get 6 documents out, each containing 1 person and 1 child. 6 | 7 | The query on the right joins Dave with each of his 2 children. 8 | 9 |
10 | SELECT * 
11 |     FROM tutorial AS contact
12 |     	UNNEST contact.children
13 |         	WHERE contact.fname = 'Dave' 
14 | 
15 | -------------------------------------------------------------------------------- /tutorial/content/slide-28.md: -------------------------------------------------------------------------------- 1 | ## Chaining JOINs 2 | 3 | JOINS can be chained and combined with UNNEST as many times as desired. 4 | 5 | In the example on the right we perform an in-document join to generate a complete order that contains the order Ids along with the users details. This is then JOINED with the order decriptions from the users_with_orders bucket. 6 | 7 |
 8 |     SELECT  u.personal_details.display_name name, s AS order_no, o.product_details  
 9 |         FROM users_with_orders u USE KEYS "Aide_48687583" 
10 |             UNNEST u.shipped_order_history s 
11 |                 JOIN users_with_orders o ON KEYS s.order_id
12 | 
13 | -------------------------------------------------------------------------------- /tutorial/content/slide-30.md: -------------------------------------------------------------------------------- 1 | ## DELETE 2 | This feature is currently experimental and not for use in production. 3 | 4 | Keys can be deleted using the DELETE clause. The returning clause in the example query on the right will return the list of keys that were deleted from the bucket 5 | 6 | The example below will delete all documents where tutorial.title = "Mrs" 7 | 8 | 9 | EXPLAIN DELETE FROM tutorial t WHERE t.title = "Mrs" 10 | 11 | 12 |
13 |     EXPLAIN DELETE FROM tutorial t 
14 |         USE KEYS "baldwin" RETURNING t
15 | 
16 | -------------------------------------------------------------------------------- /tutorial/content/slide-31.md: -------------------------------------------------------------------------------- 1 | ## UPDATE 2 | This feature is currently experimental and not for use in production. 3 | 4 | UPDATE replaces a document that already exists with updated values 5 | 6 | The example on the right would have changed the type of the document "baldwin" from 7 | "contact" to "actor" 8 | 9 |
10 |     EXPLAIN 
11 |         UPDATE tutorial 
12 |             USE KEYS "baldwin" 
13 |                 SET type = "actor" RETURNING tutorial.type
14 | 
15 | -------------------------------------------------------------------------------- /tutorial/content/slide-33.md: -------------------------------------------------------------------------------- 1 | ## Shopper - Browsing products from page to page 2 | 3 | Don enjoys playing golf and he is looking for a driver that will bring a new swing to his game. 4 | 5 | He selects the "golf" category and browses through the available golf gear. The webpage shows 10 items at a time, paging through the result set. 6 | 7 | ![ScreenShot](./images/webpagination.png) 8 | 9 | Get a list of all the golfing products limit by 10, and skip the first 10 10 | 11 |
12 |     SELECT *
13 | 	FROM product 
14 | 	UNNEST product.categories AS cat
15 | 		WHERE LOWER(cat) in ["golf"] LIMIT 10 OFFSET 10 
16 | 
17 | 18 | 19 | -------------------------------------------------------------------------------- /tutorial/content/slide-34.md: -------------------------------------------------------------------------------- 1 | ## Shopper - Listing product categories 2 | 3 | Don also wants to buy a new cup for his everyday coffee. 4 | 5 | He looks at the catalog of product categories to see if there is a category for cups. 6 | 7 | ![ScreenShot](./images/coffeecup.png) 8 | 9 | Is there a "cup" category available? (HINT: Run the query to see if there is one) 10 | 11 |
12 |     SELECT 
13 | 	DISTINCT categories
14 | 	FROM product
15 | 	UNNEST product.categories AS categories
16 | 
17 | -------------------------------------------------------------------------------- /tutorial/content/slide-35.md: -------------------------------------------------------------------------------- 1 | ## Shopper - Browsing and searching for a product 2 | 3 | Because, there is no category called "cup", Don decides to search for product names that have the substring "cup". 4 | 5 | Did you know that ....
6 | when researching branded products, 44% of online shoppers begin by using a search? 7 | 8 |
 9 |     SELECT 
10 | 	productId, name
11 | 	FROM product
12 | 	WHERE LOWER(name) LIKE "%cup%"
13 | 
14 | -------------------------------------------------------------------------------- /tutorial/content/slide-36.md: -------------------------------------------------------------------------------- 1 | ## Shopper - Listing products in a category 2 | 3 | Don also wants to browse through some appliances. Maybe, a dishwasher to wash his cup. What do you think? 4 | 5 | He clicks on the "Appliances" category on the site menu, and the website displays a list of appliances he can browse through. 6 | 7 |
 8 |     SELECT
 9 | 	product 
10 | 	FROM product
11 | 	UNNEST product.categories AS categories
12 | 	WHERE categories = "Appliances"
13 | 
14 | -------------------------------------------------------------------------------- /tutorial/content/slide-39.md: -------------------------------------------------------------------------------- 1 | ## Shopper - Shopping at a one-day sale 2 | 3 | dimestore announces a one-day super sale, with deals for many products. 4 | 5 | Are there any appliances on sale below $6.99? 6 | 7 | ![ScreenShot](./images/onedaysale.png) 8 | 9 |
10 | 	SELECT product.name, product.unitPrice, product.categories 
11 | 	FROM product UNNEST product.categories AS categories 
12 | 	WHERE categories = "Appliances" AND product.unitPrice < 6.99
13 | 
14 | -------------------------------------------------------------------------------- /tutorial/content/slide-4.md: -------------------------------------------------------------------------------- 1 | ## Document Meta-Data 2 | 3 | Document databases such as Couchbase often store meta-data about a document outside of the document. 4 | 5 | In the example on the right, the META() function is used to access the meta-data for each document. In the tutorial database the only meta-data field returned is the document ID. 6 | 7 |
 8 | SELECT META(tutorial) AS meta
 9 | 	FROM tutorial
10 | 
11 | -------------------------------------------------------------------------------- /tutorial/content/slide-40.md: -------------------------------------------------------------------------------- 1 | ## Shopper - Listing the top 10 best selling products 2 | 3 | Don wants to know what are the top 10 best selling products on the dimestore website. 4 | 5 | Thanks to N1QL, we can now easily query the data in Couchbase to produce that list. 6 | 7 | ![ScreenShot](./images/top10.png) 8 | 9 |
10 | 	SELECT product.name, SUM(items.count) AS unitsSold 
11 | 	FROM purchases UNNEST purchases.lineItems AS items 
12 | 	JOIN product ON KEYS items.product 
13 | 	GROUP BY product 
14 | 	ORDER BY unitsSold DESC LIMIT 10	
15 | 
16 | -------------------------------------------------------------------------------- /tutorial/content/slide-44.md: -------------------------------------------------------------------------------- 1 | ## Merchant - Reporting customers by region 2 | 3 | dimestore wants to launch a regional marketing campaign and management wants a report of the number of customers 4 | per region grouped by postal code 5 | 6 | ![ScreenShot](./images/howzipworks.png) 7 | 8 |
 9 | 	SELECT COUNT(customer) AS customerCount, state
10 | 	FROM customer 
11 | 	GROUP BY state
12 | 	ORDER BY customerCount DESC
13 | 
14 | -------------------------------------------------------------------------------- /tutorial/content/slide-47.md: -------------------------------------------------------------------------------- 1 | ## Merchant - Generating the month-over-month sales report 2 | 3 | Sonia, the general manager of dimestore, has asked her sales staff to put together a month-on-month sales report. 4 | 5 | ![ScreenShot](./images/salesmam.png) 6 | 7 | Rudy runs the N1QL query to generate the data needed for his report. Try it out. 8 | 9 |
10 | SELECT SUBSTR(purchases.purchasedAt, 0, 7) as month, 
11 | 	ROUND(SUM(product.unitPrice * items.count)/1000000, 3) revenueMillion
12 | FROM purchases UNNEST purchases.lineItems AS items JOIN product ON KEYS items.product 
13 | GROUP BY SUBSTR(purchases.purchasedAt, 0, 7) 
14 | ORDER BY month 
15 | 
16 | -------------------------------------------------------------------------------- /tutorial/content/slide-48.md: -------------------------------------------------------------------------------- 1 | ## Merchant - Big ticket orders 2 | 3 | Sonia now wants to find out which of the orders in the month of April exceeded the unit price of $500. The query on right uses subquery clause to get the desired results 4 | 5 |
 6 |     SELECT purchases.purchaseId, l.product 
 7 |         FROM purchases UNNEST purchases.lineItems l 
 8 |             WHERE DATE_PART_STR(purchases.purchasedAt,"month") = 4
 9 |             AND DATE_PART_STR(purchases.purchasedAt,"year") = 2014 
10 |             AND EXISTS (SELECT product.productId FROM product USE KEYS l.product 
11 |                 WHERE product.unitPrice > 500)
12 | 
13 | 14 | -------------------------------------------------------------------------------- /tutorial/content/slide-5.md: -------------------------------------------------------------------------------- 1 | ## Performing Simple Arithmetic 2 | 3 | We can also perform basic arithmetic in our expressions. 4 | 5 | In this example we calculate Dave's age in dog years by dividing their age by 7. 6 | 7 | The common arithmetic operations +, -, *, / and % are supported. 8 | 9 | Try using a different arithmetic operation. 10 | 11 |
12 | SELECT fname, age, age/7 AS age_dog_years 
13 |     FROM tutorial 
14 |         WHERE fname = 'Dave'
15 | 
16 | -------------------------------------------------------------------------------- /tutorial/content/slide-51.md: -------------------------------------------------------------------------------- 1 | ## Listing messages sent by a user 2 | 3 | In jungleville, players can send messages to other players. 4 | 5 | How do you get a list of all the messages sent by a player zid-jungle-0001 to all other players? Run this N1QL query to find out all the messages sent by player zid-jungle-0001. 6 | 7 |
 8 | SELECT player.name, inbox.messages
 9 | FROM jungleville AS player 
10 |      USE KEYS "zid-jungle-0001" 
11 | LEFT JOIN jungleville_inbox AS inbox 
12 |      ON KEYS "zid-jungle-inbox-" || SUBSTR(player.uuid, 11)
13 | 
14 | 15 | 16 | -------------------------------------------------------------------------------- /tutorial/content/slide-52.md: -------------------------------------------------------------------------------- 1 | ## Generating scoreboards 2 | 3 | In jungleville, head-to-head matchups are a regular affair. Scoreboards can be used to keep track of competition and who has won. 4 | 5 | What does the scoreboard for user_id=0004 look like? 6 | 7 |
 8 | SELECT stats.uuid AS player, hist.uuid AS opponent, 
 9 | 	SUM(CASE WHEN hist.result = "won" THEN 1 ELSE 0 END) AS wins, 
10 | 	SUM(CASE WHEN hist.result = "lost" THEN 1 ELSE 0 END) AS losses
11 | FROM jungleville_stats AS stats 
12 | 	USE KEYS "zid-jungle-stats-0004" 
13 | UNNEST stats.`pvp-hist` AS hist
14 | GROUP BY stats.uuid, hist.uuid
15 | 
16 | -------------------------------------------------------------------------------- /tutorial/content/slide-53.md: -------------------------------------------------------------------------------- 1 | ## Generating global leaderboards 2 | 3 | Do we have a leader of the jungle? Leaderboards show global rankings, ordered by the number of wins and the player level. 4 | 5 | How does the leaderboard for jungleville look like today? Run the query to figure it out. 6 | 7 |
 8 | SELECT player.name, 
 9 |        player.level, 
10 |        stats.loadtime, 
11 |        SUM(CASE WHEN hist.result = "won" THEN 1 ELSE 0 END) AS wins
12 | FROM jungleville_stats AS stats 
13 | 	UNNEST stats.`pvp-hist` AS hist 
14 | JOIN jungleville AS player ON KEYS stats.uuid
15 | GROUP BY player, stats
16 | ORDER BY wins DESC, player.level DESC
17 | 
18 | -------------------------------------------------------------------------------- /tutorial/content/slide-54.md: -------------------------------------------------------------------------------- 1 | ## Listing friends 2 | 3 | To compute local leaderboards, you might want to join a player's blob with their friends blob. This N1QL query shows you how to do that. 4 | 5 |
 6 | SELECT jungleville.level, friends 
 7 | FROM jungleville USE KEYS "zid-jungle-0002" 
 8 | JOIN jungleville.friends
 9 |      ON KEYS jungleville.friends
10 | 
11 | 12 | Thank you for exploring N1QL. Remember, this was just a quick tutorial. Download N1QL today and try out more complex queries. 13 | -------------------------------------------------------------------------------- /tutorial/content/slide-6.md: -------------------------------------------------------------------------------- 1 | ## Use Functions on the Data 2 | 3 | Built-in functions allow greater flexibility when working with the data. 4 | 5 | The ROUND() and TRUNC() functions allow us to round and truncate numeric values. 6 | 7 | In the example on the right, we've updated the previous example to round the dog_years calculation to an integer. 8 | 9 | Try changing ROUND() to TRUNC() 10 | 11 |
12 | SELECT fname, age, ROUND(age/7) AS age_dog_years 
13 |     FROM tutorial 
14 |         WHERE fname = 'Dave'
15 | 
-------------------------------------------------------------------------------- /tutorial/content/slide-7.md: -------------------------------------------------------------------------------- 1 | ## String Concatenation 2 | 3 | The string concatenation operator allows you to combine multiple string values into one. 4 | 5 | In the example on the right we combine peoples first and last names into a full name. 6 | 7 | Try adding the field "title" to the output as well. 8 | 9 |
10 | SELECT fname || " " || lname AS full_name
11 |     FROM tutorial 
12 | 
-------------------------------------------------------------------------------- /tutorial/content/slide-9.md: -------------------------------------------------------------------------------- 1 | ## Pattern Matching with LIKE 2 | 3 | Inexact string matching can be accomplished using the LIKE operator in the WHERE clause. 4 | 5 | The argument on the right hand side of the keyword LIKE is the pattern that the expression must match. 6 | In these patterns `%` is a wildcard which will match 0 or more characters. Also `_` can be used to match 7 | exactly 1 character. 8 | 9 | In the example on the right we look for people who have a yahoo.com email address. 10 | 11 | Try changing LIKE to NOT LIKE. 12 | 13 |
14 | SELECT fname, email
15 |     FROM tutorial 
16 |         WHERE email LIKE '%@yahoo.com'
17 | 
18 | -------------------------------------------------------------------------------- /tutorial/data/sampledb.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/tutorial/data/sampledb.zip -------------------------------------------------------------------------------- /value/example/example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/value/example/example -------------------------------------------------------------------------------- /value/testdata/code.json.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/couchbaselabs/query/027e8563239c9a036a287782c0c2814a62dd6efa/value/testdata/code.json.gz --------------------------------------------------------------------------------