We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to reach out the author of repo and check his opinion about a new feature.
this lib will use the lowercase class name as the default name in mongodb
class User(Model): name: str
Save this with engine and it will generate the collection user in mongodb
engine
user
I also know that the lib provide a way to set custom collection name.
I want a lazy solution to just turn my class name into plural nouns and use that.
I want instead of user, I would like to go by the users without me need to specify all custom names by myself.
users
I know there is workaround, but i think it is nice to have this as a lib option directly.
There are many choices of interfaces that could potentially be, for example
class CapitalCity(PluralMixins, Model): pass class CapitalCity(ModelWithPluralName): pass engine = AIOEngine(use_plural_collection_name=True)
I trusts in the pythonic instrict of author. so, I'm waiting for reply.
Maybe we can use this lib to help in plural conversion https://pypi.org/project/inflect/
I could do a PR.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I want to reach out the author of repo and check his opinion about a new feature.
currently
this lib will use the lowercase class name as the default name in mongodb
Save this with
engine
and it will generate the collectionuser
in mongodbI also know that the lib provide a way to set custom collection name.
propose
I want a lazy solution to just turn my class name into plural nouns and use that.
I want instead of
user
, I would like to go by theusers
without me need to specify all custom names by myself.I know there is workaround, but i think it is nice to have this as a lib option directly.
There are many choices of interfaces that could potentially be, for example
I trusts in the pythonic instrict of author. so, I'm waiting for reply.
how to implement
Maybe we can use this lib to help in plural conversion https://pypi.org/project/inflect/
I could do a PR.
The text was updated successfully, but these errors were encountered: