code: func NewConnection(c *sdb.Conn, s *Store, id uint64, it, tt time.Duration) *Connection {
  	now := time.Now()
  	conn := Connection{
  		db:          c,
  		store:       s,
  		ID:          id,
  		CreatedAt:   now,
  		LastUsedAt:  now,
  		IdleTimeout: it,
  		TxTimeout:   tt,
  		logger:      log.New(os.Stderr, connectionLogPrefix(id), log.LstdFlags),
  	}
  	return &conn
  }
docs: // NewConnection returns a connection to the database.