xorm/dialects
fanybook aea91cc7de add table & column comment for postgres(add table comment for mysql) (#2067)
让 postgres 支持字段注释,只在 v1.2.5 上测试过(不知道怎么 import master)

发现 master 分支好像大改了?模式表名带 schema 了

使用方式和 mysql 相同
```go
	type User struct {
		Id int64	`xorm:"pk autoincr"`
		Name string `json:"name" xorm:"not null default '' varchar(50) index(name_age) comment('用户 (it''s) 1; 名')"`
		Salt string
		Age int		`json:"age" xorm:"not null default 0 int(10) index(name_age) comment('年龄')"`
		Passwd string `xorm:"varchar(200)"`
		CreatedAt time.Time `xorm:"created"`
		UpdatedAt time.Time `xorm:"updated"`
	}

	_ = engine.Sync(new(User))

    func (model User) TableComment() string {
    	return "表注释"
    }
```

Co-authored-by: fanybook <fanybook@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-on: https://gitea.com/xorm/xorm/pulls/2067
Co-authored-by: fanybook <fanybook@noreply.gitea.io>
Co-committed-by: fanybook <fanybook@noreply.gitea.io>
2021-11-12 20:58:05 +08:00
..
dameng.go Fix bug of dameng scan (#2056) 2021-09-24 21:45:47 +08:00
dialect.go add table & column comment for postgres(add table comment for mysql) (#2067) 2021-11-12 20:58:05 +08:00
driver.go refactor some code (#2000) 2021-07-21 00:12:20 +08:00
filter.go Ignore comments when deciding when to replace question marks. #1954 (#1955) 2021-06-26 19:19:13 +08:00
filter_test.go Ignore comments when deciding when to replace question marks. #1954 (#1955) 2021-06-26 19:19:13 +08:00
gen_reserved.sh Move reserve words related files into dialects sub package (#1544) 2020-02-24 10:05:10 +00:00
mssql.go Fix missing quote on modifycolumnSQL (#2058) 2021-09-29 20:07:55 +08:00
mssql_test.go
mysql.go add table & column comment for postgres(add table comment for mysql) (#2067) 2021-11-12 20:58:05 +08:00
oracle.go Add dameng support (#2007) 2021-08-24 13:46:08 +08:00
oracle_test.go Oracle : Local Naming Method (#1515) 2020-03-23 02:03:04 +00:00
pg_reserved.txt Move reserve words related files into dialects sub package (#1544) 2020-02-24 10:05:10 +00:00
postgres.go add table & column comment for postgres(add table comment for mysql) (#2067) 2021-11-12 20:58:05 +08:00
postgres_test.go Fix postgres driver datasource name parse (#2012) 2021-07-28 10:03:09 +08:00
quote.go Improve quote policy (#1567) 2020-03-06 07:48:32 +00:00
sqlite3.go Add dameng support (#2007) 2021-08-24 13:46:08 +08:00
sqlite3_test.go
table_name.go Fix postgres schema problem (#1624) 2020-03-25 09:36:45 +00:00
table_name_test.go Move statement as a sub package (#1564) 2020-02-28 12:29:08 +00:00
time.go Fix timesatmp (#2021) 2021-08-04 16:12:10 +08:00