From d45e01cc8ddaccffdb89b0fd39116a9092970b67 Mon Sep 17 00:00:00 2001 From: si3nloong Date: Tue, 15 Feb 2022 10:50:02 +0800 Subject: [PATCH] doc: update `README` --- README.md | 5 ++--- sql/codec/registry.go | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 08146ea7..f1d393bb 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ SQLike did support **mysql 5.7** as well. For better compatibility, we suggest y - Support `Transactions` - Support cursor based pagination - Support advance and complex query statement -- Support [civil.Date](https://cloud.google.com/go/civil) +- Support [civil.Date](https://cloud.google.com/go/civil#Date), [civil.Time](https://cloud.google.com/go/civil#Time) and [time.Location](https://pkg.go.dev/time#Time) - Support [language.Tag](https://godoc.org/golang.org/x/text/language#example-Tag--Values) and [currency.Unit](https://godoc.org/golang.org/x/text/currency#Unit) - Support authorization plugin [Casbin](https://github.com/casbin/casbin) - Support tracing plugin [OpenTracing](https://github.com/opentracing/opentracing-go) @@ -280,5 +280,4 @@ Thanks to these awesome companies for their support of Open Source developers Copyright (c) 2019-present, SianLoong Lee - -[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fsi3nloong%2Fsqlike.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fsi3nloong%2Fsqlike?ref=badge_large) \ No newline at end of file +[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fsi3nloong%2Fsqlike.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fsi3nloong%2Fsqlike?ref=badge_large) diff --git a/sql/codec/registry.go b/sql/codec/registry.go index d3771394..819df618 100644 --- a/sql/codec/registry.go +++ b/sql/codec/registry.go @@ -42,7 +42,7 @@ func buildDefaultRegistry() Codecer { rg.RegisterTypeCodec(reflect.TypeOf(language.Tag{}), enc.EncodeStringer, dec.DecodeLanguage) rg.RegisterTypeCodec(reflect.TypeOf(currency.Unit{}), enc.EncodeStringer, dec.DecodeCurrency) rg.RegisterTypeCodec(reflect.TypeOf(time.Time{}), enc.EncodeTime, dec.DecodeDateTime) - rg.RegisterTypeCodec(reflect.TypeOf(time.Location{}), enc.EncodeStringer, dec.DecodeTimeLocation) + rg.RegisterTypeCodec(reflect.TypeOf(time.Location{}), enc.EncodeStringer, dec.DecodeTimeLocation) rg.RegisterTypeCodec(reflect.TypeOf(civil.Date{}), enc.EncodeStringer, dec.DecodeCivilDate) rg.RegisterTypeCodec(reflect.TypeOf(civil.Time{}), enc.EncodeStringer, dec.DecodeCivilTime) rg.RegisterTypeCodec(reflect.TypeOf(sql.RawBytes{}), enc.EncodeRawBytes, dec.DecodeRawBytes)