-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #59 from flycash/main
改名为 eorm, 并且改为纯中文项目
- Loading branch information
Showing
36 changed files
with
107 additions
and
110 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,32 @@ | ||
## Developing | ||
- [Init Project](https://github.com/gotomicro/eql/pull/1) | ||
- [Selector Definition](https://github.com/gotomicro/eql/pull/2) | ||
- [Deleter Definition](https://github.com/gotomicro/eql/pull/4) | ||
- [Updater Definition](https://github.com/gotomicro/eql/pull/8) | ||
- [Rft: remove NilAsNullFunc](https://github.com/gotomicro/eql/pull/48) | ||
- [Metadata API](https://github.com/gotomicro/eql/pull/16) | ||
- [Add model register examples](https://github.com/gotomicro/eql/pull/54) | ||
- [tagMetaRegistry: default implementation of MetaRegistry](https://github.com/gotomicro/eql/pull/25) | ||
- [Rft: remove defaultRegistry](https://github.com/gotomicro/eql/pull/46) | ||
- [Use `bytebufferpool` for builder](https://github.com/gotomicro/eql/pull/39) | ||
- [Refactor: move Insert function into db.file](https://github.com/gotomicro/eql/pull/28) | ||
- [Selector implementation, excluding WHERE and HAVING clauses](https://github.com/gotomicro/eql/pull/32) | ||
- [Ignore columns by Tag and Option](https://github.com/gotomicro/eql/pull/49) | ||
- [Selector WHERE clause](https://github.com/gotomicro/eql/pull/40) | ||
- [Support Aggregate Functions](https://github.com/gotomicro/eql/pull/37) | ||
- [Updater implementation, excluding WHERE clause](https://github.com/gotomicro/eql/pull/36) | ||
- [Force test and lint in pre-push](https://github.com/gotomicro/eql/pull/35) | ||
- [Insert implementation ](https://github.com/gotomicro/eql/pull/38) | ||
- [Delete implementation ](https://github.com/gotomicro/eql/pull/43) | ||
- [Having implementation ](https://github.com/gotomicro/eql/pull/45) | ||
- [RawExpr accepts arguments ](https://github.com/gotomicro/eql/pull/53) | ||
- [Support having with alias functions](https://github.com/gotomicro/eql/pull/55) | ||
- [Add `NewSelector` function](https://github.com/gotomicro/eql/pull/56) | ||
- [Support using `RawExpr` as `Predicate`](https://github.com/gotomicro/eql/pull/57) | ||
- [Remove WithNil and WithZero function](https://github.com/gotomicro/eql/pull/58) | ||
## 开发中: | ||
- [Init Project](https://github.com/gotomicro/eorm/pull/1) | ||
- [Selector Definition](https://github.com/gotomicro/eorm/pull/2) | ||
- [Deleter Definition](https://github.com/gotomicro/eorm/pull/4) | ||
- [Updater Definition](https://github.com/gotomicro/eorm/pull/8) | ||
- [Rft: remove NilAsNullFunc](https://github.com/gotomicro/eorm/pull/48) | ||
- [Metadata API](https://github.com/gotomicro/eorm/pull/16) | ||
- [Add model register examples](https://github.com/gotomicro/eorm/pull/54) | ||
- [tagMetaRegistry: default implementation of MetaRegistry](https://github.com/gotomicro/eorm/pull/25) | ||
- [Rft: remove defaultRegistry](https://github.com/gotomicro/eorm/pull/46) | ||
- [Use `bytebufferpool` for builder](https://github.com/gotomicro/eorm/pull/39) | ||
- [Refactor: move Insert function into db.file](https://github.com/gotomicro/eorm/pull/28) | ||
- [Selector implementation, excluding WHERE and HAVING clauses](https://github.com/gotomicro/eorm/pull/32) | ||
- [Ignore columns by Tag and Option](https://github.com/gotomicro/eorm/pull/49) | ||
- [Selector WHERE clause](https://github.com/gotomicro/eorm/pull/40) | ||
- [Support Aggregate Functions](https://github.com/gotomicro/eorm/pull/37) | ||
- [Updater implementation, excluding WHERE clause](https://github.com/gotomicro/eorm/pull/36) | ||
- [Force test and lint in pre-push](https://github.com/gotomicro/eorm/pull/35) | ||
- [Insert implementation ](https://github.com/gotomicro/eorm/pull/38) | ||
- [Delete implementation ](https://github.com/gotomicro/eorm/pull/43) | ||
- [Having implementation ](https://github.com/gotomicro/eorm/pull/45) | ||
- [RawExpr accepts arguments ](https://github.com/gotomicro/eorm/pull/53) | ||
- [Support having with alias functions](https://github.com/gotomicro/eorm/pull/55) | ||
- [Add `NewSelector` function](https://github.com/gotomicro/eorm/pull/56) | ||
- [Support using `RawExpr` as `Predicate`](https://github.com/gotomicro/eorm/pull/57) | ||
- [Remove WithNil and WithZero function](https://github.com/gotomicro/eorm/pull/58) | ||
- [改名为 eorm, 并且改为纯中文项目](https://github.com/gotomicro/eorm/pull/59) | ||
|
||
### Docs, Lint issues and Examples | ||
- [Add examples and docs for Aggregate and Assign](https://github.com/gotomicro/eql/pull/50) | ||
- [Add examples for Column and columns](https://github.com/gotomicro/eql/pull/51) | ||
- [Add examples for DB, Predicate, Deleter, Inserter](https://github.com/gotomicro/eql/pull/52) | ||
### 文档, 代码质量以及文档 | ||
- [Add examples and docs for Aggregate and Assign](https://github.com/gotomicro/eorm/pull/50) | ||
- [Add examples for Column and columns](https://github.com/gotomicro/eorm/pull/51) | ||
- [Add examples for DB, Predicate, Deleter, Inserter](https://github.com/gotomicro/eorm/pull/52) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,30 @@ | ||
# EQL | ||
# EORM | ||
|
||
[![codecov](https://codecov.io/gh/gotomicro/eql/branch/main/graph/badge.svg?token=vc0BDor3Lk)](https://codecov.io/gh/gotomicro/eql) | ||
[![codecov](https://codecov.io/gh/gotomicro/eorm/branch/main/graph/badge.svg?token=vc0BDor3Lk)](https://codecov.io/gh/gotomicro/eorm) | ||
|
||
An easy-use SQL builder. | ||
简单的 ORM 框架。 | ||
|
||
## SQL 2003 Standard | ||
In theory, we try to support the [SQL 2003 standard](https://ronsavage.github.io/SQL/sql-2003-2.bnf.html#query%20specification). But as we know, some databases do not follow the standard. These databases have its own feature, and we will support these grammers in the future. | ||
> 注意:这是一个全中文的仓库。这意味着注释、文档和错误信息,都会是中文的。介意的用户可以选择 GORM,这也是一个杰出的 ORM 仓库 | ||
## Design | ||
## SQL 2003 标准 | ||
理论上来说,我们计划支持 [SQL 2003 standard](https://ronsavage.github.io/SQL/sql-2003-2.bnf.html#query%20specification). 不过据我们所知,并不是所有的数据库都支持全部的 SQL 2003 标准,所以用户还是需要进一步检查目标数据库的语法。 | ||
|
||
We are not English native speaker, so we use Chinese to write the design documents. We plan to translate them to English. Or you can use some software to translate it. | ||
|
||
Here is a good one: https://www.deepl.com/en/translator | ||
## 设计 | ||
|
||
[设计思路](./docs/design.md) | ||
|
||
[B站视频](https://space.bilibili.com/324486985) | ||
|
||
## Contribution | ||
## 加入我们 | ||
|
||
You must follow these rules: | ||
- One commit one PR | ||
- You must add change log to `.CHANGELOG.md` file | ||
- You must add license header to every new files | ||
我们欢迎任何人给我们提合并请求,但是我们希望合并请求能够做到: | ||
- 一个合并请求一个 Commit ID | ||
- 自己要先确保合并请求能够通过 CI | ||
- 我们使用 uber 的[代码风格](https://github.com/uber-go/guide/blob/master/style.md) | ||
|
||
[style guide](https://github.com/uber-go/guide/blob/master/style.md) | ||
### 设置开发环境 | ||
|
||
### Setup Develop Environment | ||
如果你是 Windows 用户,那么我们建议你使用 WSL,因为这个仓库会使用到一个 Unix 命令来帮助构建、测试等。 | ||
|
||
#### install golangci-lint | ||
Please refer [Install golangci-lint](https://golangci-lint.run/usage/install/) | ||
#### setup pre-push github hook | ||
Please move the `.github/pre-push` to your `.git` directory | ||
#### 安装 golangci-lint | ||
参考 [Install golangci-lint](https://golangci-lint.run/usage/install/) | ||
#### 设置 pre-push github hook | ||
将`.github/pre-push` 复制到本仓库的 `.git` 目录下 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module github.com/gotomicro/eql | ||
module github.com/gotomicro/eorm | ||
|
||
go 1.17 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.