Versions in this module Expand all Collapse all v0 v0.8.3 Feb 14, 2025 v0.8.2 Feb 14, 2025 Changes in this version + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type GetCheckConstraintsRow struct + ColumnNames []string + ConstraintExpression string + ConstraintName string + IsNotInheritable bool + IsValid bool + Oid interface{} + TableName string + TableSchemaName string + type GetColumnsForTableRow struct + CacheSize sql.NullInt64 + CollationName string + CollationSchemaName string + ColumnName string + ColumnSize int16 + ColumnType string + DefaultValue string + IdentityType string + IncrementValue sql.NullInt64 + IsCycle sql.NullBool + IsNotNull bool + MaxValue sql.NullInt64 + MinValue sql.NullInt64 + StartValue sql.NullInt64 + type GetDependsOnFunctionsParams struct + ObjectID interface{} + SystemCatalog interface{} + type GetDependsOnFunctionsRow struct + FuncIdentityArguments string + FuncName string + FuncSchemaName string + type GetEnumsRow struct + EnumLabels []string + EnumName string + EnumSchemaName string + type GetExtensionsRow struct + ExtensionName string + ExtensionVersion string + Oid interface{} + SchemaName string + type GetForeignKeyConstraintsRow struct + ConstraintDef string + ConstraintName string + ForeignTableName string + ForeignTableSchemaName string + IsValid bool + OwningTableName string + OwningTableSchemaName string + type GetIndexesRow struct + ColumnNames []string + ConstraintDef string + ConstraintIsLocal bool + ConstraintName string + ConstraintType string + DefStmt string + IndexIsPk bool + IndexIsUnique bool + IndexIsValid bool + IndexName string + Oid interface{} + ParentIndexName string + ParentIndexSchemaName string + TableName string + TableSchemaName string + type GetPoliciesRow struct + AppliesTo []string + CheckExpression string + Cmd string + ColumnNames []string + IsPermissive bool + OwningTableName string + OwningTableSchemaName string + PolicyName string + UsingExpression string + type GetProcsRow struct + FuncDef string + FuncIdentityArguments string + FuncLang string + FuncName string + FuncSchemaName string + Oid interface{} + type GetSequencesRow struct + CacheSize int64 + DataType string + IncrementValue int64 + IsCycle bool + MaxValue int64 + MinValue int64 + OwnerColumnName string + OwnerSchemaName string + OwnerTableName string + SequenceName string + SequenceSchemaName string + StartValue int64 + type GetTablesRow struct + Oid interface{} + ParentTableName string + ParentTableSchemaName string + PartitionForValues string + PartitionKeyDef string + ReplicaIdentity string + RlsEnabled bool + RlsForced bool + TableName string + TableSchemaName string + type GetTriggersRow struct + FuncIdentityArguments string + FuncName string + FuncSchemaName string + OwningTableName string + OwningTableSchemaName string + TriggerDef string + TriggerName string + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) GetCheckConstraints(ctx context.Context) ([]GetCheckConstraintsRow, error) + func (q *Queries) GetColumnsForTable(ctx context.Context, attrelid interface{}) ([]GetColumnsForTableRow, error) + func (q *Queries) GetDependsOnFunctions(ctx context.Context, arg GetDependsOnFunctionsParams) ([]GetDependsOnFunctionsRow, error) + func (q *Queries) GetEnums(ctx context.Context) ([]GetEnumsRow, error) + func (q *Queries) GetExtensions(ctx context.Context) ([]GetExtensionsRow, error) + func (q *Queries) GetForeignKeyConstraints(ctx context.Context) ([]GetForeignKeyConstraintsRow, error) + func (q *Queries) GetIndexes(ctx context.Context) ([]GetIndexesRow, error) + func (q *Queries) GetPolicies(ctx context.Context) ([]GetPoliciesRow, error) + func (q *Queries) GetProcs(ctx context.Context, prokind interface{}) ([]GetProcsRow, error) + func (q *Queries) GetSchemas(ctx context.Context) ([]string, error) + func (q *Queries) GetSequences(ctx context.Context) ([]GetSequencesRow, error) + func (q *Queries) GetTables(ctx context.Context) ([]GetTablesRow, error) + func (q *Queries) GetTriggers(ctx context.Context) ([]GetTriggersRow, error) + func (q *Queries) WithTx(tx *sql.Tx) *Queries