package
module
Version:
v0.0.0-...-3dec541
Opens a new window with list of versions in this module.
Published: Aug 25, 2021
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package mongoExport
导出mongo里的数据到 xlsx, csv, 或者json文件
NewClient uri default 127.0.0.1:27017
ToCsv To export data from a collection for a CSV file.
headerS 指定 Excel 的字段以及顺序, queryBsonM 过滤条件,可以为nil,代表全部
fieldExclude 排除掉的字段. 当headerS不为空的时候, 该参数失效.
ToExcel To export data from a collection for a Excel file.
headerS 指定 Excel 的字段以及顺序, queryBsonM 过滤条件,可以为nil,代表全部
fieldExclude 排除掉的字段. 当headerS不为空的时候, 该参数失效.
ToJson To export data from a collection for a JSON file.
headerS 指定 Excel 的字段以及顺序, queryBsonM 过滤条件,可以为nil,代表全部
fieldExclude 排除掉的字段. 当headerS不为空的时候, 该参数失效.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.