Versions in this module Expand all Collapse all v2 v2.24.0 Nov 9, 2023 Changes in this version + var SchemaDatabase = sqlx.NewDatabase("INFORMATION_SCHEMA") + func InterpolateParams(query string, args []driver.NamedValue, loc *time.Location) (string, error) + type ColumnSchema struct + CHARACTER_MAXIMUM_LENGTH uint64 + COLUMN_DEFAULT string + COLUMN_NAME string + DATA_TYPE string + IS_NULLABLE string + NUMERIC_PRECISION uint64 + NUMERIC_SCALE uint64 + TABLE_NAME string + TABLE_SCHEMA string + func (ColumnSchema) TableName() string + type IndexSchema struct + INDEX_DEF string + INDEX_NAME string + TABLE_NAME string + TABLE_SCHEMA string + func (IndexSchema) TableName() string + type PostgreSQLConnector struct + DBName string + Extensions []string + Extra string + Host string + func (PostgreSQLConnector) Driver() driver.Driver + func (PostgreSQLConnector) DriverName() string + func (PostgreSQLConnector) IsErrorConflict(err error) bool + func (PostgreSQLConnector) IsErrorUnknownDatabase(err error) bool + func (PostgreSQLConnector) PrimaryKeyName() string + func (c *PostgreSQLConnector) AddColumn(col *builder.Column) builder.SqlExpr + func (c *PostgreSQLConnector) AddIndex(key *builder.Key) builder.SqlExpr + func (c *PostgreSQLConnector) Connect(ctx context.Context) (driver.Conn, error) + func (c *PostgreSQLConnector) CreateDatabase(dbName string) builder.SqlExpr + func (c *PostgreSQLConnector) CreateSchema(schema string) builder.SqlExpr + func (c *PostgreSQLConnector) CreateTableIsNotExists(t *builder.Table) (exprs []builder.SqlExpr) + func (c *PostgreSQLConnector) DataType(columnType *builder.ColumnType) builder.SqlExpr + func (c *PostgreSQLConnector) DropColumn(col *builder.Column) builder.SqlExpr + func (c *PostgreSQLConnector) DropDatabase(dbName string) builder.SqlExpr + func (c *PostgreSQLConnector) DropIndex(key *builder.Key) builder.SqlExpr + func (c *PostgreSQLConnector) DropTable(t *builder.Table) builder.SqlExpr + func (c *PostgreSQLConnector) Migrate(ctx context.Context, db sqlx.DBExecutor) error + func (c *PostgreSQLConnector) ModifyColumn(col *builder.Column, prev *builder.Column) builder.SqlExpr + func (c *PostgreSQLConnector) RenameColumn(col *builder.Column, target *builder.Column) builder.SqlExpr + func (c *PostgreSQLConnector) TruncateTable(t *builder.Table) builder.SqlExpr + func (c PostgreSQLConnector) WithDBName(dbName string) driver.Connector + type PostgreSQLLoggingDriver struct + func (d *PostgreSQLLoggingDriver) Open(dsn string) (driver.Conn, error) + type PostgreSQLOpts map[string]string + func FromConfigString(s string) PostgreSQLOpts + func (opts PostgreSQLOpts) String() string + type SqlPrinter struct + func (p *SqlPrinter) String() string v2.24.0-local Sep 27, 2023 Other modules containing this package github.com/kunlun-qilian/sqlx/v3