Skip to content

db: rename store constructors

Administrator requested to merge asdine/rename-store-ctors into main

Created by: asdine

Rename store constructors to something shorter, similar to the name of the global store variables. Ex:

// Before:
// access to the global Users store
idb.Users.Create(...)
// creating a UserStore
idx.NewUserStoreWithDB(db)
idx.NewUserStoreWith(otherStore)

// After:
// access to the global Users store
idb.GlobalUsers.Create(...) // (PR #17503)
// creating a UserStore
idx.Users(db).Create(...)
idx.UsersWith(otherStore).Create(...)

Merge request reports

Loading