Initial lookbook implementation
Pinterest-style visual bookmarking app with: - URL metadata extraction (OG/Twitter meta, oEmbed fallback) - Image caching in Postgres with 480px thumbnails - Multi-tag filtering with Ctrl/Cmd for OR mode - Fuzzy tag suggestions and inline tag editing - Browser console auth() with first-use password setup - Brutalist UI with Commit Mono font and Pico CSS - Light/dark mode via browser preference
This commit is contained in:
commit
fc625fb9cf
486 changed files with 195373 additions and 0 deletions
48
vendor/github.com/pressly/goose/v3/provider_errors.go
generated
vendored
Normal file
48
vendor/github.com/pressly/goose/v3/provider_errors.go
generated
vendored
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
package goose
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
var (
|
||||
// ErrVersionNotFound is returned when a specific migration version is not located. This can
|
||||
// occur if a .sql file or a Go migration function for the specified version is missing.
|
||||
ErrVersionNotFound = errors.New("version not found")
|
||||
|
||||
// ErrNoMigrations is returned by [NewProvider] when no migrations are found.
|
||||
ErrNoMigrations = errors.New("no migrations found")
|
||||
|
||||
// ErrAlreadyApplied indicates that the migration cannot be applied because it has already been
|
||||
// executed. This error is returned by [Provider.Apply].
|
||||
ErrAlreadyApplied = errors.New("migration already applied")
|
||||
|
||||
// ErrNotApplied indicates that the rollback cannot be performed because the migration has not
|
||||
// yet been applied. This error is returned by [Provider.Apply].
|
||||
ErrNotApplied = errors.New("migration not applied")
|
||||
|
||||
// errInvalidVersion is returned when a migration version is invalid.
|
||||
errInvalidVersion = errors.New("version must be greater than 0")
|
||||
)
|
||||
|
||||
// PartialError is returned when a migration fails, but some migrations already got applied.
|
||||
type PartialError struct {
|
||||
// Applied are migrations that were applied successfully before the error occurred. May be
|
||||
// empty.
|
||||
Applied []*MigrationResult
|
||||
// Failed contains the result of the migration that failed. Cannot be nil.
|
||||
Failed *MigrationResult
|
||||
// Err is the error that occurred while running the migration and caused the failure.
|
||||
Err error
|
||||
}
|
||||
|
||||
func (e *PartialError) Error() string {
|
||||
return fmt.Sprintf(
|
||||
"partial migration error (type:%s,version:%d): %v",
|
||||
e.Failed.Source.Type, e.Failed.Source.Version, e.Err,
|
||||
)
|
||||
}
|
||||
|
||||
func (e *PartialError) Unwrap() error {
|
||||
return e.Err
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue