NI-Lab.

nilog:

← 前の日 2024-01-27 次の日 →
← 一年前 一年後 →
Mastodon Japan (2024-01-27)

おや・・・

unsupported Scan, storing driver.Value type []uint8 into type *time.Time


[Mastodon Japan] 2024-01-27 23:10:20
関連するかも情報

"Lightweight and fast"

"Native Go implementation. No C-bindings, just pure Go"

"Connections over TCP/IPv4, TCP/IPv6, Unix domain sockets or custom protocols"

"Automatic Connection Pooling (by database/sql package)"

GitHub - go-sql-driver/mysql: Go MySQL Driver is a MySQL driver for Go's (golang) database/sql package github.com/go-sql-driver/mysql


[Mastodon Japan] 2024-01-27 20:42:52

おや・・・

unsupported Scan, storing driver.Value type []uint8 into type *time.Time


[Mastodon Japan] 2024-01-27 23:10:20

「sqlx.Connectを使う際にオプションパラメータを指定しておくことで解決することができた」「sqlx.Connect("mysql", "root:@(localhost:43306)/sqlx_development?parseTime=true")」

[Go] MySQLからScanしたときunsupported Scan, storing driver.Value type []uint8 into type *time.Timeと出てパースに失敗する - My External Storage budougumi0617.github.io/2019/0


[Mastodon Japan] 2024-01-27 23:11:17

ChatGPTで調べながらとりあえずなんとかコードが書けた。Go言語でデータベースにアクセスして結果をJSONで返すWebAPIの雛形。


[Mastodon Japan] 2024-01-27 23:41:55
2024年01年27日のnilogをすべて表示する

- NI-Lab.'s accounts
- Fedibird
- Mastodon Japan
- Twitter(X)
- はてなブックマーク
- Timelog

- NI-Lab.

Web Services by Yahoo! JAPAN