# Type alias ConnectOptions

ConnectOptions: Meta.ConnectOptions<Resources.Collections>

Options for connecting to @truffle/db

    type ConnectOptions = {
      adapter?:
        | {
            name: "couch";
            settings?: Meta.Pouch.Adapters.Couch.DatabasesSettings;
          }
        |
            name: "memory";
            settings?: Meta.Pouch.Adapters.Memory.DatabasesSettings;
          }
        | {
            name: "indexeddb";
            settings?: Meta.Pouch.Adapters.IndexedDb.DatabasesSettings;
          }
    };

See individual settings interfaces:

- [[Meta.Pouch.Adapters.Couch.DatabasesSettings]]
- [[Meta.Pouch.Adapters.Fs.DatabasesSettings]]
- [[Meta.Pouch.Adapters.Memory.DatabasesSettings]]
- [[Meta.Pouch.Adapters.IndexedDb.DatabasesSettings]]

Default adapter: `{ name: "indexeddb" }`

We recommend using only `"indexeddb"` and `"couch"` at this time.

- Defined in packages/db/src/system.ts:46

Generated using TypeDoc