MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

Revision 12 as of 2023-05-26 13:51:14
  • CouchDB

CouchDB

  • https://couchdb.apache.org/

  • https://cwiki.apache.org/confluence/display/COUCHDB/Introduction

Clustered database that allows you to run a single logical database server on any number of servers or VMs.

Seamless multi-master sync, that scales from Big Data to Mobile, with an intuitive HTTP/JSON API and designed for Reliability.

Docker instances

   1 docker run -p 5984:5984 --rm -d --name my-couchdb-1 -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password apache/couchdb:latest
   2 docker run -p 5985:5984 --rm -d --name my-couchdb-2 -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password apache/couchdb:latest
   3 docker run -p 5986:5984 --rm -d --name my-couchdb-3 -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password apache/couchdb:latest
   4 
   5 docker network create couchnet
   6 docker network connect couchnet my-couchdb-1
   7 docker network connect couchnet my-couchdb-2 
   8 docker network connect couchnet my-couchdb-3
   9 docker ps
  10 
  11 curl localhost:5984
  12 curl localhost:5985
  13 curl localhost:5986
  14 
  15 docker exec -it my-couchdb-1 sh -c 'apt update &&
  16 apt install -y net-tools  inetutils-ping nano vim'
  17 docker exec -it my-couchdb-2 sh -c 'apt update &&
  18 apt install -y net-tools  inetutils-ping nano vim'
  19 docker exec -it my-couchdb-3 sh -c 'apt update &&
  20 apt install -y net-tools  inetutils-ping nano vim'

python CouchDB lib

  • pip3 install CouchDB
  • https://couchdb-python.readthedocs.io/en/latest/client.html#

   1 import couchdb
   2 server = couchdb.client.Server('http://user:pwd@example.org/dbx/')
   3 db = server['dbtest']
   4 print( db.info() )
   5 doc = db['00998876870c1935a6d2de43ade4']
   6 print( doc )
   7 
   8 for row in db.view('_all_docs'):
   9   print(row.id)
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01