expect

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AlterColumnOp1 = &migrations.OpAlterColumn{
	Table:    "foo",
	Column:   "a",
	Nullable: ptr(false),
	Up:       sql2pgroll.PlaceHolderSQL,
	Down:     sql2pgroll.PlaceHolderSQL,
}
View Source
var AlterColumnOp2 = &migrations.OpAlterColumn{
	Table:    "foo",
	Column:   "a",
	Nullable: ptr(true),
	Up:       sql2pgroll.PlaceHolderSQL,
	Down:     sql2pgroll.PlaceHolderSQL,
}
View Source
var AlterColumnOp3 = &migrations.OpAlterColumn{
	Table:  "foo",
	Column: "a",
	Type:   ptr("text"),
	Up:     sql2pgroll.PlaceHolderSQL,
	Down:   sql2pgroll.PlaceHolderSQL,
}
View Source
var AlterColumnOp4 = &migrations.OpAlterColumn{
	Table:  "foo",
	Column: "a",
	Name:   ptr("b"),
}
View Source
var CreateConstraintOp1 = &migrations.OpCreateConstraint{
	Type:    migrations.OpCreateConstraintTypeUnique,
	Name:    "bar",
	Table:   "foo",
	Columns: []string{"a"},
	Down:    map[string]string{"a": sql2pgroll.PlaceHolderSQL},
	Up:      map[string]string{"a": sql2pgroll.PlaceHolderSQL},
}
View Source
var CreateConstraintOp2 = &migrations.OpCreateConstraint{
	Type:    migrations.OpCreateConstraintTypeUnique,
	Name:    "bar",
	Table:   "foo",
	Columns: []string{"a", "b"},
	Down: map[string]string{
		"a": sql2pgroll.PlaceHolderSQL,
		"b": sql2pgroll.PlaceHolderSQL,
	},
	Up: map[string]string{
		"a": sql2pgroll.PlaceHolderSQL,
		"b": sql2pgroll.PlaceHolderSQL,
	},
}
View Source
var CreateTableOp1 = &migrations.OpCreateTable{
	Name: "foo",
	Columns: []migrations.Column{
		{
			Name:     "a",
			Type:     "int4",
			Nullable: true,
		},
	},
}
View Source
var CreateTableOp2 = &migrations.OpCreateTable{
	Name: "foo",
	Columns: []migrations.Column{
		{
			Name: "a",
			Type: "int4",
		},
	},
}
View Source
var CreateTableOp3 = &migrations.OpCreateTable{
	Name: "foo",
	Columns: []migrations.Column{
		{
			Name:     "a",
			Type:     "varchar(255)",
			Nullable: true,
		},
	},
}
View Source
var CreateTableOp4 = &migrations.OpCreateTable{
	Name: "foo",
	Columns: []migrations.Column{
		{
			Name:     "a",
			Type:     "numeric(10,2)",
			Nullable: true,
		},
	},
}
View Source
var CreateTableOp5 = &migrations.OpCreateTable{
	Name: "foo",
	Columns: []migrations.Column{
		{
			Name:     "a",
			Type:     "int4",
			Nullable: true,
			Unique:   true,
		},
	},
}
View Source
var CreateTableOp6 = &migrations.OpCreateTable{
	Name: "foo",
	Columns: []migrations.Column{
		{
			Name: "a",
			Type: "int4",
			Pk:   true,
		},
	},
}
View Source
var CreateTableOp7 = &migrations.OpCreateTable{
	Name: "foo",
	Columns: []migrations.Column{
		{
			Name:     "a",
			Type:     "text[]",
			Nullable: true,
		},
	},
}
View Source
var CreateTableOp8 = &migrations.OpCreateTable{
	Name: "foo",
	Columns: []migrations.Column{
		{
			Name:     "a",
			Type:     "text[5]",
			Nullable: true,
		},
	},
}
View Source
var CreateTableOp9 = &migrations.OpCreateTable{
	Name: "foo",
	Columns: []migrations.Column{
		{
			Name:     "a",
			Type:     "text[5][3]",
			Nullable: true,
		},
	},
}
View Source
var RenameConstraintOp1 = &migrations.OpRenameConstraint{
	Table: "foo",
	From:  "bar",
	To:    "baz",
}
View Source
var RenameTableOp1 = &migrations.OpRenameTable{
	From: "foo",
	To:   "bar",
}

Functions

func RawSQLOp

func RawSQLOp(sql string) *migrations.OpRawSQL

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL