Skip to content

Branor/CouchbaseLite-Delphi-ComInterop

 
 

Repository files navigation

CouchbaseLite-Delphi-ComInterop

A bridge from those who need to run Couchbase Lite on delphi

Assumptions

  1. You have Couchbase Server Installation
  2. You have installed Couchbase sync gateway
  3. Based on https://github.com/Branor/DelphiCouchbaseInterop
  • Needed for the delphi project to work - not crucial for the CouchbaseLite wrapper.

Usage

  1. In the code - localhost for syncGateway.
  2. Compile the dotNet project (the CouchbaseLiteManager)
  3. Copy the product of the compilation to a safe place
  4. register the dll (%Windir%\Microsoft.NET\Framework\v4.0.30319\regasm.exe /codebase /pathToDll /tlb)
  5. Import Component to the Delphi project, choose create unit.
  6. in the config.json, change the syncgatewayAddress to you syncgateway Address (for dev, usually localhost)
  7. run SyncGateway -> from installation directory "Sync_gateway.exe config.json"

In Delphi

  • Don't forget to CoInitialize and Uninitialize when needed.

About

A bridge from those who need to run Couchbase Lite on delphi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Pascal 99.2%
  • C# 0.8%