Skip to content

Custom index definitions #3

Description

@Tim020

Allow custom indexes to be specified to be created by Couch Potato, for example:

class UserModel(couch_potato.Model):
    __bucket__ = "test"
    __key_generator__ = KeyGenerator("User::{name}")

    name = String()
    age = Integer()

    indexes = [Index("my_index", name, age), Index("my_index_2", age)]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions