Documentation
¶
Overview ¶
Package postgres provides a PostgreSQL database adapter for LeapSQL.
Package postgres provides a PostgreSQL database adapter for LeapSQL.
This file registers the PostgreSQL adapter with the adapter registry. Import this package with a blank identifier to register the adapter:
import _ "github.com/leapstack-labs/leapsql/pkg/adapters/postgres"
Index ¶
- type Adapter
- func (a *Adapter) Connect(ctx context.Context, cfg core.AdapterConfig) error
- func (a *Adapter) DialectConfig() *core.DialectConfig
- func (a *Adapter) GetTableMetadata(ctx context.Context, table string) (*core.TableMetadata, error)
- func (a *Adapter) LoadCSV(ctx context.Context, tableName string, filePath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter struct {
adapter.BaseSQLAdapter
// contains filtered or unexported fields
}
Adapter implements the adapter.Adapter interface for PostgreSQL.
func New ¶
New creates a new PostgreSQL adapter instance. If logger is nil, a discard logger is used.
func (*Adapter) DialectConfig ¶
func (a *Adapter) DialectConfig() *core.DialectConfig
DialectConfig returns the SQL dialect configuration for this adapter.
func (*Adapter) GetTableMetadata ¶
GetTableMetadata retrieves metadata for a specified table.
Click to show internal directories.
Click to hide internal directories.