Commit a0cbf006 authored by gwenn's avatar gwenn

Add missing doc

parent fe257286
......@@ -207,6 +207,7 @@ func (s *Stmt) ColumnTypeAffinity(index int) Affinity {
return affinity
}
// Affinity returns the type affinity of the column.
func (c Column) Affinity() Affinity {
return typeAffinity(c.DataType)
}
......
......@@ -21,6 +21,7 @@ type Pool struct {
idleTimeout time.Duration
}
// ConnOpen is the signature of connection factory.
type ConnOpen func() (*Conn, error)
// NewPool creates a connection pool.
......@@ -140,6 +141,7 @@ func (p *Pool) Close() {
p.factory = nil
}
// IsClosed returns true when the pool has been closed.
func (p *Pool) IsClosed() bool {
return p.factory == nil
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment