Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deusdat/arangomigo
/ functions
Functions
87 in github.com/deusdat/arangomigo
⨍
Functions
87
◇
Types & classes
32
↓ 61 callers
Function
e
(err error)
impls.go:202
↓ 14 callers
Method
Collection
(ctx context.Context, name string)
impl_test.go:12
↓ 13 callers
Method
Database
An empty implementation of ArangoSearchView.View.Database().
impls_view_test.go:70
↓ 13 callers
Method
Remove
Implements View.Remove.
impls_view_test.go:35
↓ 7 callers
Function
dropIndex
(ctx context.Context, cl driver.Collection, name string)
impls.go:740
↓ 6 callers
Method
Migrate
The impls_view contains all the implementation code for create, modifying and deleting an Arango Search View.
impls_view.go:47
↓ 6 callers
Function
loadConf
Reads in a yaml file at the confLoc and returns the Config instance.
arangomigo.go:43
↓ 5 callers
Function
TriggerMigration
(configAt string)
arangomigo.go:16
↓ 5 callers
Function
client
Create the client used to talk to ArangoDB
impls.go:183
↓ 5 callers
Function
getInt
(unk interface{})
impls_view.go:206
↓ 5 callers
Function
nearlyLexical
nearlyLexical sorts the paths based on near lexical sorting. Chomps the description of the migration off. Uses just the version information.
migrations.go:337
↓ 4 callers
Method
Properties
Implements ArangoSearchView.Properties()
impls_view_test.go:55
↓ 4 callers
Method
View
Implements Database.View() to get a View or return an error as the test expects.
impls_view_test.go:95
↓ 3 callers
Method
Migrate
(ctx context.Context, driver driver.Database, extras map[string]interface{})
impls.go:23
↓ 3 callers
Method
Name
()
impl_test.go:23
↓ 3 callers
Function
directReplace
directReplace attempts to use the key value to find a lookup in the map. if one exists, it returns the values; otherwise returns the key.
impls.go:245
↓ 2 callers
Method
FileName
()
impls.go:24
↓ 2 callers
Method
Name
Implements View.Name() and used in testing.
impls_view_test.go:19
↓ 2 callers
Method
SetCheckSum
(sum string)
impls.go:27
↓ 2 callers
Method
SetFileName
(name string)
impls.go:25
↓ 2 callers
Method
SetProperties
Implements ArangoSearchView.SetProperties()
impls_view_test.go:85
↓ 2 callers
Function
buildViewProperties
(searchView SearchView)
impls_view.go:86
↓ 2 callers
Function
loadFrom
Loads a set of migrations from a given directory.
migrations.go:377
↓ 2 callers
Function
lpadToLength
(s string, l int)
migrations.go:315
↓ 2 callers
Function
open
Opens the path into a byte slice. Returns the bytes, the file's checksum, and an error.
migrations.go:405
↓ 2 callers
Function
perform
Entry point in actually executing the migrations
impls.go:65
↓ 2 callers
Function
version
(s string)
migrations.go:321
↓ 1 callers
Method
ArangoSearchAliasIndexes
()
impls_view.go:37
↓ 1 callers
Method
ArangoSearchView
Implements View.ArangoSearchView() to get an ArangoSearchView or return an error as the test expects.
impls_view_test.go:24
↓ 1 callers
Method
ArangoSearchViewAlias
An empty implementation of ArangoSearchView.View.ArangoSearchViewAlias().
impls_view_test.go:65
↓ 1 callers
Method
CheckSum
()
impls.go:26
↓ 1 callers
Method
CreateArangoSearchView
Implements Database.CreateArangoSearchView()
impls_view_test.go:90
↓ 1 callers
Function
GetEnv
(key string, fallback string)
perform_test.go:9
↓ 1 callers
Method
InvertedIndexFields
()
migrations.go:156
↓ 1 callers
Function
PerformMigrations
End Common operation implementations
impls.go:52
↓ 1 callers
Function
buildFields
(properties SearchElementProperties)
impls_view.go:132
↓ 1 callers
Function
buildSearchConsolidationPolicy
(consolidationPolicy *ConsolidationPolicy)
impls_view.go:161
↓ 1 callers
Function
buildSortField
(field SortField)
impls_view.go:119
↓ 1 callers
Function
getFloat
(unk interface{})
impls_view.go:200
↓ 1 callers
Function
loadDb
( ctx context.Context, conf Config, cl driver.Client, pm *[]PairedMigrations, extras map[string]interface
impls.go:131
↓ 1 callers
Function
migrate
TODO remember that having replayable migrations need to be possible too. Have branch those into running at the end.
arangomigo.go:31
↓ 1 callers
Function
migrateNow
( ctx context.Context, db driver.Database, pms []PairedMigrations, extras map[string]interface{}, )
impls.go:81
↓ 1 callers
Function
migrations
Pairs migrations together. Returns an error if unable to find migrations.
migrations.go:297
↓ 1 callers
Function
pickT
Reads the migration contents to pick the proper type.
migrations.go:416
↓ 1 callers
Function
pointyBool
(bool2 bool)
impls.go:127
↓ 1 callers
Function
toStruct
* Converts a path to the proper underlying types specified in the childPath. */
migrations.go:456
Method
ArangoSearchView
An empty implementation of ArangoSearchView.View.ArangoSearchView().
impls_view_test.go:60
Method
CheckSum
CheckSum gets the checksum for the migration's file
impls.go:41
Method
FileName
FileName gets the filename of the migrations configuration.
impls.go:31
Method
Migrate
(ctx context.Context, db driver.Database, extras map[string]interface{})
impls.go:206
Method
Migrate
(ctx context.Context, db driver.Database, _ map[string]interface{})
impls.go:252
Method
Migrate
(ctx context.Context, db driver.Database, _ map[string]interface{})
impls.go:324
Method
Migrate
(ctx context.Context, db driver.Database, _ map[string]interface{})
impls.go:444
Method
Migrate
(ctx context.Context, db driver.Database, _ map[string]interface{})
impls.go:478
Method
Migrate
(ctx context.Context, db driver.Database, _ map[string]interface{})
impls.go:513
Method
Migrate
(ctx context.Context, db driver.Database, _ map[string]interface{})
impls.go:550
Method
Migrate
(ctx context.Context, db driver.Database, _ map[string]interface{})
impls.go:585
Method
Migrate
(ctx context.Context, db driver.Database, _ map[string]interface{})
impls.go:618
Method
Migrate
(ctx context.Context, db driver.Database, _ map[string]interface{})
impls.go:655
Method
Migrate
(ctx context.Context, db driver.Database, _ map[string]interface{})
impls.go:677
Method
Migrate
(ctx context.Context, db driver.Database, extras map[string]interface{})
impls.go:717
Method
Migrate
(ctx context.Context, db driver.Database, extras map[string]interface{})
impls_view.go:12
Method
Name
Implements ArangoSearchView.Name()
impls_view_test.go:45
Method
Remove
An empty implementation of ArangoSearchView.View.Remove().
impls_view_test.go:80
Method
Rename
An empty implementation of ArangoSearchView.View.Rename().
impls_view_test.go:75
Method
SetCheckSum
SetCheckSum sets the checksum of the file, in hex.
impls.go:46
Method
SetFileName
SetFileName updates the filename of the migration
impls.go:36
Function
TestConfigLoad
(t *testing.T)
arangomigo_test.go:13
Function
TestDateAndDescription
(t *testing.T)
migrations_test.go:33
Function
TestDecNumericVersions
(t *testing.T)
migrations_test.go:60
Function
TestFullMigration
(t *testing.T)
arangomigo_test.go:24
Function
TestKeyGeneratorType
(t *testing.T)
arangomigo_test.go:192
Function
TestLoadFromPath
(t *testing.T)
migrations_test.go:10
Function
TestMultiPathMigration
(t *testing.T)
arangomigo_test.go:107
Function
TestNumericVersions
(t *testing.T)
migrations_test.go:50
Function
TestPerform
(t *testing.T)
perform_test.go:17
Function
TestSimpleDataVersion
(t *testing.T)
migrations_test.go:18
Function
TestSkipSSLVerify
(t *testing.T)
arangomigo_test.go:157
Function
TestViewCreateError
Test the error is handled during creating a view.
impls_view_test.go:106
Function
TestViewDeleteErrorGetting
Test the error is handled when getting a view for delete.
impls_view_test.go:121
Function
TestViewDeleteErrorRemove
Test the error is handled during deleting a view.
impls_view_test.go:135
Function
TestViewModifyErrorGetSearchView
Test the error is handled when getting the ArangoSearchView from a view.
impls_view_test.go:163
Function
TestViewModifyErrorGetting
Test the error is handled when getting a view to update.
impls_view_test.go:149
Function
TestViewModifyErrorSetProperties
Test the error is handled when updating the ArangoSearchView's properties.
impls_view_test.go:177
Method
Type
Implements ArangoSearchView.Type()
impls_view_test.go:50
Method
UnmarshalYAML
(unmarshal func(interface{}) error)
arangomigo.go:73
Function
main
()
cmd/arangomigo/main.go:13