-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
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
建议加个索引列出功能 #315
Labels
feature
new feature
Comments
你是指这个功能? 有兴趣可以提个 PR. 个人以为提供一个 type IndexSpecification struct {
// The index name.
Name string
// The namespace for the index. This is a string in the format "databaseName.collectionName".
Namespace string
// The keys specification document for the index.
KeysDocument bson.Raw
// The index version.
Version int32
// The length of time, in seconds, for documents to remain in the collection. The default value is 0, which means
// that documents will remain in the collection until they're explicitly deleted or the collection is dropped.
ExpireAfterSeconds *int32
// If true, the index will only reference documents that contain the fields specified in the index. The default is
// false.
Sparse *bool
// If true, the collection will not accept insertion or update of documents where the index key value matches an
// existing value in the index. The default is false.
Unique *bool
// The clustered index.
Clustered *bool
} |
项目死了吗 |
|
|
@888go 抄家伙,跟他干! :D |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我看了我们的, 没有取集合索引的功能. 其他人之前也在issues提过.
The text was updated successfully, but these errors were encountered: