Documentation
¶
Index ¶
- Constants
- func Close()
- func Delete(collection, key string) error
- func Find(collection string, query js.Json, page, rows int) (js.List, error)
- func Get(collection, key string) (js.Item, error)
- func Insert(collection, key string, data interface{}) error
- func Set(collection string, data interface{}) error
- type Conn
Constants ¶
View Source
const ( ERR_ENV_REQUIRED = "Variables de entorno requerida (%s)" ERR_NOT_MONGO_SERVICE = "Not mongo service" ERR_NOT_JSON = "Not json" )
Variables ¶
This section is empty.
Functions ¶
func Delete ¶
* * Delete data from a collection * @param collection string * @param key string * @return error *
func Find ¶
* * Find data in a collection * @param collection string * @param query js.Json * @param page int * @param rows int * @return js.List * @return error *
func Get ¶
* * Get data from a collection * @param collection string * @param key string * @return js.Items * @return error *
Types ¶
Click to show internal directories.
Click to hide internal directories.