# README
easysql
this's a golang library for mysql/postgresql/cockroachdb. it's easy to switch backend dbserver between mysql, postgresql and cockroachdb with little change in your golang code.
features:
- you should write SQL clause to talk to backend db server.
- data type binding between database and golang type. string, int, float, date, datetime, string[], int[], jsonb, etc.
- support transfer to default value if one db column is NULL
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
szDate 为UTC时间。 layout格式为: "2006-01-02".
layout默认为: "2006-01-02 15:04:05", 时区为tm所在时区.
szDate为本地时区时间。 layout格式为: "2006-01-02 15:04:05".
szDate 为UTC时间。 layout格式为: "2006-01-02 15:04:05".
# Structs
------------------------------------------------------------------------------空字段会解析为 false.
注意:日期不带时区信息.
No description provided by the author
No description provided by the author
------------------------------------------------------------------------------空字段会解析为0.
------------------------------------------------------------------------------空字段会解析为0.
------------------------------------------------------------------------------JSONB格式,数据库字段格式为: "{}", 不能为json数组等其他格式空字段解析为空map.
------------------------------------------------------------------------------空字段解析为空字符串.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author