...

Source file src/github.com/jackc/pgtype/bit.go

Documentation: github.com/jackc/pgtype

     1  package pgtype
     2  
     3  import (
     4  	"database/sql/driver"
     5  )
     6  
     7  type Bit Varbit
     8  
     9  func (dst *Bit) Set(src interface{}) error {
    10  	return (*Varbit)(dst).Set(src)
    11  }
    12  
    13  func (dst Bit) Get() interface{} {
    14  	return (Varbit)(dst).Get()
    15  }
    16  
    17  func (src *Bit) AssignTo(dst interface{}) error {
    18  	return (*Varbit)(src).AssignTo(dst)
    19  }
    20  
    21  func (dst *Bit) DecodeBinary(ci *ConnInfo, src []byte) error {
    22  	return (*Varbit)(dst).DecodeBinary(ci, src)
    23  }
    24  
    25  func (src Bit) EncodeBinary(ci *ConnInfo, buf []byte) ([]byte, error) {
    26  	return (Varbit)(src).EncodeBinary(ci, buf)
    27  }
    28  
    29  func (dst *Bit) DecodeText(ci *ConnInfo, src []byte) error {
    30  	return (*Varbit)(dst).DecodeText(ci, src)
    31  }
    32  
    33  func (src Bit) EncodeText(ci *ConnInfo, buf []byte) ([]byte, error) {
    34  	return (Varbit)(src).EncodeText(ci, buf)
    35  }
    36  
    37  // Scan implements the database/sql Scanner interface.
    38  func (dst *Bit) Scan(src interface{}) error {
    39  	return (*Varbit)(dst).Scan(src)
    40  }
    41  
    42  // Value implements the database/sql/driver Valuer interface.
    43  func (src Bit) Value() (driver.Value, error) {
    44  	return (Varbit)(src).Value()
    45  }
    46  

View as plain text