migrations

package
v0.172.6 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Code generated for package migrations by go-bindata DO NOT EDIT. (@generated) sources: 1691753758_initial.up.sql 1692701329_add_collectibles_and_collections_data_cache.up.sql 1692701339_add_scope_to_pending.up.sql 1694540071_add_collectibles_ownership_update_timestamp.up.sql 1694692748_add_raw_balance_to_token_balances.up.sql 1695133989_add_community_id_to_collectibles_and_collections_data_cache.up.sql 1695932536_balance_history_v2.up.sql 1696853635_input_data.up.sql 1698117918_add_community_id_to_tokens.up.sql 1698257443_add_community_metadata_to_wallet_db.up.sql 1699987075_add_timestamp_and_state_to_community_data_cache.up.sql 1700414564_add_wallet_connect_pairings_table.up.sql 1701101493_add_token_blocks_range.up.sql 1702467441_wallet_connect_sessions_instead_of_pairings.up.sql 1702577524_add_community_collections_and_collectibles_images_cache.up.sql 1702867707_add_balance_to_collectibles_ownership_cache.up.sql 1703686612_add_color_to_saved_addresses.up.sql 1704701942_remove_favourite_and_change_primary_key_for_saved_addresses.up.sql 1704913491_add_type_and_tx_timestamp_to_collectibles_ownership_cache.up.sql 1705664490_add_balance_check_fields_blocks_ranges_sequential.up.sql doc.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

func Asset(name string) ([]byte, error)

Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetDir

func AssetDir(name string) ([]string, error)

AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:

data/
  foo.txt
  img/
    a.png
    b.png

then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.

func AssetInfo

func AssetInfo(name string) (os.FileInfo, error)

AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetNames

func AssetNames() []string

AssetNames returns the names of the assets.

func Migrate

func Migrate(db *sql.DB, customSteps []*sqlite.PostStep) error

Migrate applies migrations. see Migrate in vendor/status-go/sqlite/migrate.go

func MigrateTo

func MigrateTo(db *sql.DB, customSteps []*sqlite.PostStep, untilVersion uint) error

MigrateTo is used for testing purposes

func MustAsset

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func RestoreAsset

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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