Skip to content

Commit

Permalink
升级依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Dec 20, 2022
1 parent c38ea9f commit f545ec0
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 439 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
# data 数据库ORM组件
> [文档:https://farseer-go.github.io/doc/](https://farseer-go.github.io/doc/)

> 包:`"github.com/farseer-go/data"`
>
> 模块:`data.Module`
![](https://img.shields.io/github/stars/farseer-go?style=social)
![](https://img.shields.io/github/license/farseer-go/data)
![](https://img.shields.io/github/go-mod/go-version/farseer-go/data)
![](https://img.shields.io/github/v/release/farseer-go/data)
![](https://img.shields.io/github/languages/code-size/farseer-go/data)
![](https://img.shields.io/github/directory-file-count/farseer-go/data)
![](https://goreportcard.com/badge/github.com/farseer-go/data)

## 概述

data组件提供数据库ORM操作,将数据库多张表组织到一个`上下文`中。并使用统一的`./farseer.yaml`配置

?> 目前orm底层的组件使用的是gorm,data组件主要为了做进一步的封装,使得我们在使用时更加简单易用。
> 目前orm底层的组件使用的是gorm,data组件主要为了做进一步的封装,使得我们在使用时更加简单易用。
data组件,采用数据库上下文的概念,将多个model组合在一起,方便统一管理。
23 changes: 5 additions & 18 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ module github.com/farseer-go/data
go 1.19

require (
github.com/farseer-go/collections v0.2.0
github.com/farseer-go/fs v0.4.0
github.com/farseer-go/collections v0.2.1
github.com/farseer-go/fs v0.4.1
gorm.io/driver/mysql v1.4.4
gorm.io/driver/postgres v1.4.5
gorm.io/driver/sqlite v1.4.3
Expand All @@ -14,11 +14,9 @@ require (

require (
github.com/devfeel/mapper v0.7.10 // indirect
github.com/fsnotify/fsnotify v1.6.0 // indirect
github.com/go-sql-driver/mysql v1.7.0 // indirect
github.com/golang-sql/civil v0.0.0-20220223132316-b832511892a9 // indirect
github.com/golang-sql/sqlexp v0.1.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/jackc/chunkreader/v2 v2.0.1 // indirect
github.com/jackc/pgconn v1.13.0 // indirect
github.com/jackc/pgio v1.0.0 // indirect
Expand All @@ -29,23 +27,12 @@ require (
github.com/jackc/pgx/v4 v4.17.2 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/magiconair/properties v1.8.7 // indirect
github.com/kr/pretty v0.3.0 // indirect
github.com/mattn/go-sqlite3 v1.14.16 // indirect
github.com/microsoft/go-mssqldb v0.18.0 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
github.com/spf13/afero v1.9.3 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.14.0 // indirect
github.com/studyzy/iocgo v0.0.0-20220102165609-54d474ad4d2a // indirect
github.com/subosito/gotenv v1.4.1 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/stretchr/testify v1.8.1 // indirect
golang.org/x/crypto v0.4.0 // indirect
golang.org/x/sys v0.3.0 // indirect
golang.org/x/text v0.5.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit f545ec0

Please sign in to comment.