Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-14409

read a flat file into the CBQ prompt(shell)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • feature-backlog
    • 4.0.0
    • query
    • Security Level: Public
    • None
    • Untriaged
    • Unknown

    Description

      I have a flat file( I call cbq_indexes.txt) with the following:

      CREATE PRIMARY INDEX ON `travel-sample` using gsi;
      CREATE PRIMARY INDEX ON `gamesim-sample` using gsi;
      CREATE PRIMARY INDEX ON `beer-sample` using gsi;
      create index Beer_by_phone on `beer-sample`(phone) using gsi;
      create index Beer_style on `beer-sample`(style) using gsi;
      create index Beer_abv on `beer-sample`(abv) using gsi;
      create index Beer_by_state on `beer-sample`(state) using gsi;
      create index levels on `gamesim-sample`(level) using gsi;

      is there a way to read this flat file into the cbq> ?

      something like this......

      cbq> source "cbq_indexes.txt"

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Prerna.Manaktala Prerna Manaktala (Inactive)
            chaynes Chris Haynes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty