NI-Lab.

nilog:

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

"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] 2024-01-27 20:42:52
関連するかも情報

"The database/sql and database/sql/driver packages are designed for using databases from Go and implementing database drivers, respectively."

Go Wiki: SQL Database Drivers - The Go Programming Language go.dev/wiki/SQLDrivers


[Mastodon] 2024-01-27 20:41:21

"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] 2024-01-27 20:42:52

おや・・・

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


[Mastodon] 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] 2024-01-27 23:11:17

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


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

- NI-Lab.
- Mastodon (@nilab@mastodon-japan.net)
- Twitter (@nilab)
- Timelog (@nilab)
- はてなブックマーク (id:nilab)

Web Services by Yahoo! JAPAN