Cov txheej txheem:

Kuv yuav khiav cov lus nug hauv couchbase li cas?
Kuv yuav khiav cov lus nug hauv couchbase li cas?

Video: Kuv yuav khiav cov lus nug hauv couchbase li cas?

Video: Kuv yuav khiav cov lus nug hauv couchbase li cas?
Video: Koj saib kuv tsis muaj nqis - Nkauj tawm tshiab 2021-22 2024, Kaum ib hlis
Anonim

Txhawm rau khiav cbq plhaub:

  1. Qhib lub qhov rais hais kom ua ntawm a Couchbase Server node uas muaj cov nug kev pabcuam tau qhib.
  2. Nkag mus rau qhov hais kom ua pib kev sib tham sib nug plhaub: Ntawm Linux systems: $ /opt/ couchbase /bin/cbq. Hauv OS X systems: $ /Applications/ Couchbase Server. app/Contents/Resources/ couchbase -core/bin/cbq.

Hais txog qhov no, kuv yuav ua li cas khiav couchbase hais kom ua kab?

Txhawm rau khiav cbq:

  1. Nkag mus rau Couchbase Server node uas muaj cov lus nug kev pabcuam qhib.
  2. Qhib lub qhov rais hais kom ua.
  3. Hloov mus rau Couchbase cov cuab yeej directory. # Ntawm Linux systems: $ cd /opt/couchbase/bin.
  4. Ntawm cbq tam sim no, nkag mus rau N1QL cov lus nug thiab xaus cov lus nug nrog lub cim cim. Nias rov qab los ua cov lus nug.

Qhov thib ob, kuv yuav tawm CBQ li cas? $./ cbq ua -ne cbq ua > CONNECT https://127.0.0.1:8091; Txuas rau: https://127.0.0.1:8091. Ntaus Ctrl-D / tawm / tawm rau tawm.

Tsuas yog li ntawd, kuv yuav ua li cas thiaj tsim tau qhov ntsuas tseem ceeb hauv couchbase?

tsim tus thawj index ntawm 'kev mus ncig ua qauv'; Cov thawj index yog qhov yooj yim qhov ntsuas ntawm daim ntawv tseem ceeb ntawm tag nrho lub thoob. Cov Couchbase cov ntaub ntawv txheej enforces lub uniqueness txwv ntawm cov ntaub ntawv tseem ceeb. Cov thawj index , zoo li txhua lwm yam Index hauv Couchbase , yog khaws cia asynchronously.

N1ql yog dab tsi?

N1QL (hais tias "nickel") yog Couchbase cov lus nug tom ntej. N1QL aims kom ua tau raws li cov lus nug xav tau ntawm cov ntaub ntawv xa tawm-oriented databases. Cov ntaub ntawv no qhia txog cov syntax thiab semantics ntawm SELECT nqe lus hauv N1QL . Nyob rau sab xis koj pom cov lus nug editor.

Pom zoo: