hydra: github.com/ory/hydra/persistence/sql Index | Files | Directories

package sql

import "github.com/ory/hydra/persistence/sql"


Package Files


type OldMigrationRecord Uses

type OldMigrationRecord struct {
    ID        string    `db:"id"`
    AppliedAt time.Time `db:"applied_at"`

this type is copied from sql-migrate to remove the dependency

type Persister Uses

type Persister struct {
    // contains filtered or unexported fields

func NewPersister Uses

func NewPersister(c *pop.Connection) (*Persister, error)

func (*Persister) Connection Uses

func (p *Persister) Connection(_ context.Context) *pop.Connection

func (*Persister) MigrateDown Uses

func (p *Persister) MigrateDown(_ context.Context, steps int) error

func (*Persister) MigrateUp Uses

func (p *Persister) MigrateUp(_ context.Context) error

func (*Persister) MigrateUpTo Uses

func (p *Persister) MigrateUpTo(_ context.Context, steps int) (int, error)

func (*Persister) MigrationStatus Uses

func (p *Persister) MigrationStatus(_ context.Context, w io.Writer) error

func (*Persister) PrepareMigration Uses

func (p *Persister) PrepareMigration(_ context.Context) error



Package sql imports 11 packages (graph) and is imported by 4 packages. Updated 2020-08-28. Refresh now. Tools for package owners.