Skip to content

A Go Mongo library based on the official MongoDB driver, featuring streamlined document operations, generic binding of structs to collections, built-in BSON doc builder, automated field updates, struct validation, hooks, and plugin-based programming.

License

Notifications You must be signed in to change notification settings

chenmingyong0423/go-mongox

Folders and files

NameName
Last commit message
Last commit date
Oct 8, 2024
May 7, 2025
Jan 25, 2025
Mar 15, 2025
Apr 14, 2025
Mar 22, 2025
Mar 22, 2025
Mar 12, 2025
May 7, 2025
Mar 15, 2025
Mar 22, 2025
Feb 2, 2025
Aug 12, 2024
Mar 22, 2025
Oct 18, 2023
Jul 19, 2023
Oct 25, 2023
Mar 15, 2025
Mar 15, 2025
Feb 2, 2025
Feb 2, 2025
Feb 2, 2025
Feb 2, 2025
Feb 2, 2025
Feb 2, 2025
Feb 2, 2025
Feb 2, 2025
Feb 2, 2025
Feb 2, 2025
May 7, 2025
May 7, 2025
Feb 2, 2025

Repository files navigation

GitHub Repo stars GitHub issues GitHub License GitHub release (with filter) codecov Go Report Card go.dev reference All Contributors

English | 中文简体

go mongox

go mongox is a generic-based library that extends the official MongoDB framework. By using generics, it binds structs to MongoDB collections, aiming to provide type safety and simplified data operations. go mongox also introduces method chaining for smoother document operations and offers a rich set of BSON builders and built-in functions to simplify the construction of BSON data. Additionally, it supports plugin-based programming and provides various built-in hook functions, offering flexibility for custom logic before and after database operations, thus enhancing the scalability and maintainability of applications.

Feature Highlights

  • Generic MongoDB Collections
  • CRUD operations for documents
  • Aggregation operations
  • Built-in basic Model struct with automatic updates to default field values
  • BSON data construction support
  • Built-in Hooks
  • Plugin-based programming support

Install

go get github.com/chenmingyong0423/go-mongox/v2

Getting Started

Contributing

With your participation, go-mongox will become even more powerful!

Contributors

Thank you for contributing to the go mongox framework!

License

© Mingyong Chen,2024-now

This project is licensed under the Apache License.

About

A Go Mongo library based on the official MongoDB driver, featuring streamlined document operations, generic binding of structs to collections, built-in BSON doc builder, automated field updates, struct validation, hooks, and plugin-based programming.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages