Versuche mit Couchbase für iOS

Zuletzt aktualisiert am 29. Mai 2024 2 Minuten

Couchbase Datenbank installieren

Kommandozeilen Tool

sudo /Users/cnichte/Documents/develop/apps-for-ios/LifeStories-Diary/MyTools/cblite file /Users/cnichte/Library/Developer/CoreSimulator/Devices/1C40799C-B097-42CE-AB45-3CDDABCAEE30/data/Containers/Data/Application/F0C984D3-37A9-4233-B654-14A2FFB07DB2/Library/Application Support/CouchbaseLite/tagebuch_db.cblite2
  • Installiere über das Terminal im vscodium:
  • npm install -g cblite-cli-macos
  • /usr/local/bin/cblite -> /usr/local/lib/node_modules/cblite-cli-macos/bin/cblite
  • + cblite-cli-macos@1.1.1
  • added 1 package from 1 contributor in 38.359s
  • … okay
  • cblite
  • cblite: Couchbase Lite / LiteCore database multi-tool
  • Missing subcommand or database path.
  • For a list of subcommands, run cblite help.
  • To start the interactive mode, run cblite DBPATH
  • … meldet sich!
cblite file /Users/cnichte/Library/Developer/CoreSimulator/Devices/1C40799C-B097-42CE-AB45-3CDDABCAEE30/data/Containers/Data/Application/F0C984D3-37A9-4233-B654-14A2FFB07DB2/Library/Application Support/CouchbaseLite/tagebuch_db.cblite2
  • Error: Database filename must have a ‘.cblite2’ extension
  • Ich lass das file mal weg
cblite /Users/cnichte/Library/Developer/CoreSimulator/Devices/1C40799C-B097-42CE-AB45-3CDDABCAEE30/data/Containers/Data/Application/F0C984D3-37A9-4233-B654-14A2FFB07DB2/Library/Application Support/CouchbaseLite/tagebuch_db.cblite2
Error: Not a valid database path (must end in .cblite2) or subcommand name: /Users/cnichte/Library/Developer/CoreSimulator/Devices/1C40799C-B097-42CE-AB45-3CDDABCAEE30/data/Containers/Data/Application/F0C984D3-37A9-4233-B654-14A2FFB07DB2/Library/Application

Da ist ein Leerzeichen im Pfad…

cblite "/Users/cnichte/Library/Developer/CoreSimulator/Devices/1C40799C-B097-42CE-AB45-3CDDABCAEE30/data/Containers/Data/Application/F0C984D3-37A9-4233-B654-14A2FFB07DB2/Library/Application Support/CouchbaseLite/tagebuch_db.cblite2"

Öffnet Datenbank als read only

ls --body --pretty

Listet alle Dokumente schön auf! Hooroay.

Logging

Tutorials

Einstieg in die Coucgbase Doku