Documentation ¶
Index ¶
- type Adapter
- type AdapterInfo
- type DbType
- type PlaceholderStyle
- type PostgresAdapter
- func (p *PostgresAdapter) Connect(dsn string) error
- func (p PostgresAdapter) DatabaseType() DbType
- func (p *PostgresAdapter) Disconnect() error
- func (p *PostgresAdapter) Exec(query string, args ...interface{}) (result sql.Result, err error)
- func (p PostgresAdapter) Placeholder() PlaceholderStyle
- func (p *PostgresAdapter) Query(query string, args ...interface{}) (rows *sql.Rows, err error)
- func (p PostgresAdapter) SpatialType() SpatialExtension
- type SpatialExtension
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdapterInfo ¶
type AdapterInfo interface { Placeholder() PlaceholderStyle SpatialType() SpatialExtension DatabaseType() DbType }
type PlaceholderStyle ¶
type PlaceholderStyle string
const DollarPlaceholder PlaceholderStyle = "DOLLAR_PLACEHOLDER"
const QuestionPlaceholder PlaceholderStyle = "QUESTION_PLACEHOLDER"
type PostgresAdapter ¶
type PostgresAdapter struct {
// contains filtered or unexported fields
}
func (*PostgresAdapter) Connect ¶
func (p *PostgresAdapter) Connect(dsn string) error
func (PostgresAdapter) DatabaseType ¶
func (p PostgresAdapter) DatabaseType() DbType
func (*PostgresAdapter) Disconnect ¶
func (p *PostgresAdapter) Disconnect() error
func (*PostgresAdapter) Exec ¶
func (p *PostgresAdapter) Exec(query string, args ...interface{}) (result sql.Result, err error)
func (PostgresAdapter) Placeholder ¶
func (p PostgresAdapter) Placeholder() PlaceholderStyle
func (*PostgresAdapter) Query ¶
func (p *PostgresAdapter) Query(query string, args ...interface{}) (rows *sql.Rows, err error)
func (PostgresAdapter) SpatialType ¶
func (p PostgresAdapter) SpatialType() SpatialExtension
type SpatialExtension ¶
type SpatialExtension string
const PostGisExtension SpatialExtension = "POSTGIS_EXTENSION"
Click to show internal directories.
Click to hide internal directories.