summaryrefslogtreecommitdiff
path: root/internal/db/account.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2024-03-22 14:03:46 +0100
committerLibravatar GitHub <noreply@github.com>2024-03-22 14:03:46 +0100
commit7f4a0a1aeb8a294ee967c63d7a48446df013ec44 (patch)
treeb9b3836fa0abe1d7a5758d07d6ebb6486a353d56 /internal/db/account.go
parent[bugfix] add all possible busy result codes to the sqlite errBusy catching ch... (diff)
downloadgotosocial-7f4a0a1aeb8a294ee967c63d7a48446df013ec44.tar.xz
[chore] Move local account settings to separate db table (#2770)
* [chore] Move local account settings to separate database model * don't use separate settings_id
Diffstat (limited to 'internal/db/account.go')
-rw-r--r--internal/db/account.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/internal/db/account.go b/internal/db/account.go
index 505ca4004..3de72c5a8 100644
--- a/internal/db/account.go
+++ b/internal/db/account.go
@@ -117,4 +117,13 @@ type Account interface {
// GetInstanceAccount returns the instance account for the given domain.
// If domain is empty, this instance account will be returned.
GetInstanceAccount(ctx context.Context, domain string) (*gtsmodel.Account, error)
+
+ // Get local account settings with the given ID.
+ GetAccountSettings(ctx context.Context, id string) (*gtsmodel.AccountSettings, error)
+
+ // Store local account settings.
+ PutAccountSettings(ctx context.Context, settings *gtsmodel.AccountSettings) error
+
+ // Update local account settings.
+ UpdateAccountSettings(ctx context.Context, settings *gtsmodel.AccountSettings, columns ...string) error
}