db

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Record 记录的 mongo 集合

Functions

func DeleteRecordByID

func DeleteRecordByID(id string) bool

DeleteRecordByID 根据 id 删除某一条记录

func InsertRecord

func InsertRecord(e bson.M) string

InsertRecord 往数据库里插入一条记录,返回插入以后的 id

func ListAllRecord

func ListAllRecord() []bson.M

ListAllRecord 从数据库中取出所有的记录,直接查全部

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL