Documentation
¶
Overview ¶
Package pg is meta.Metadata on top of pgx. Queries are not executed: columns and parameters come from Prepare (the statement description), the rest from pg_catalog by the same rules as pgjdbc's DatabaseMetaData, to match the Java plug-in.
Index ¶
- func ConnString(jdbcURL, user, pwd string) (string, error)
- type DB
- func (db *DB) Close() error
- func (db *DB) IdentifierQuote() string
- func (db *DB) ImportedKeys(table string) ([]meta.ImportedKey, error)
- func (db *DB) PKColNames(tableRef string) ([]string, error)
- func (db *DB) RawOfJava(javaType string) string
- func (db *DB) SQLColumns(jdbcSQL string) ([]meta.Column, error)
- func (db *DB) SQLParams(jdbcSQL string, typeCount int) (*meta.Params, error)
- func (db *DB) Table(tableRef string) (*meta.Table, error)
- func (db *DB) Tables(includeViews bool) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConnString ¶
ConnString builds the pgx connection string from <jdbc url user pwd> of settings.xml. Both a JDBC URL (as in the Java plug-in) and a plain postgres:// are accepted.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) IdentifierQuote ¶ added in v1.1.2
IdentifierQuote: as getIdentifierQuoteString of pgjdbc.
func (*DB) ImportedKeys ¶
func (db *DB) ImportedKeys(table string) ([]meta.ImportedKey, error)
Click to show internal directories.
Click to hide internal directories.