@@ -28,44 +28,47 @@ type TypeOwnership struct {
2828
2929type PG interface { //nolint:interfacebloat // This is needed
3030 CreateDB (ctx context.Context , dbname , username string ) error
31- ChangeDBOwner (ctx context.Context , dbname , owner string ) error
32- IsDatabaseExist (ctx context.Context , dbname string ) (bool , error )
33- RenameDatabase (ctx context.Context , oldname , newname string ) error
34- CreateSchema (ctx context.Context , db , role , schema string ) error
35- CreateExtension (ctx context.Context , db , extension string ) error
36- CreateGroupRole (ctx context.Context , role string ) error
37- CreateUserRole (ctx context.Context , role , password string , attributes * RoleAttributes ) (string , error )
38- AlterRoleAttributes (ctx context.Context , role string , attributes * RoleAttributes ) error
31+ GetDatabaseOwner (ctx context.Context , dbname string ) (string , error )
32+ // ChangeDBOwner(ctx context.Context, dbname, owner string) error
33+ // IsDatabaseExist(ctx context.Context, dbname string) (bool, error)
34+ // RenameDatabase(ctx context.Context, oldname, newname string) error
35+ // CreateSchema(ctx context.Context, db, role, schema string) error
36+ // CreateExtension(ctx context.Context, db, extension string) error
37+ // CreateGroupRole(ctx context.Context, role string) error
38+ // CreateUserRole(ctx context.Context, role, password string, attributes *RoleAttributes) (string, error)
39+ // AlterRoleAttributes(ctx context.Context, role string, attributes *RoleAttributes) error
3940 GetRoleAttributes (ctx context.Context , role string ) (* RoleAttributes , error )
4041 IsRoleExist (ctx context.Context , role string ) (bool , error )
41- RenameRole (ctx context.Context , oldname , newname string ) error
42- UpdatePassword (ctx context.Context , role , password string ) error
43- GrantRole (ctx context.Context , role , grantee string , withAdminOption bool ) error
44- SetSchemaPrivileges (ctx context.Context , db , creator , role , schema , privs string ) error
45- RevokeRole (ctx context.Context , role , userRole string ) error
46- AlterDefaultLoginRole (ctx context.Context , role , setRole string ) error
47- AlterDefaultLoginRoleOnDatabase (ctx context.Context , role , setRole , database string ) error
48- RevokeUserSetRoleOnDatabase (ctx context.Context , role , database string ) error
42+ // RenameRole(ctx context.Context, oldname, newname string) error
43+ // UpdatePassword(ctx context.Context, role, password string) error
44+ // GrantRole(ctx context.Context, role, grantee string, withAdminOption bool) error
45+ // SetSchemaPrivileges(ctx context.Context, db, creator, role, schema, privs string) error
46+ // RevokeRole(ctx context.Context, role, userRole string) error
47+ // AlterDefaultLoginRole(ctx context.Context, role, setRole string) error
48+ // AlterDefaultLoginRoleOnDatabase(ctx context.Context, role, setRole, database string) error
49+ // RevokeUserSetRoleOnDatabase(ctx context.Context, role, database string) error
4950 DoesRoleHaveActiveSession (ctx context.Context , role string ) (bool , error )
50- DropDatabase (ctx context.Context , db string ) error
51- DropRoleAndDropAndChangeOwnedBy (ctx context.Context , role , newOwner , database string ) error
52- ChangeAndDropOwnedBy (ctx context.Context , role , newOwner , database string ) error
51+ // DropDatabase(ctx context.Context, db string) error
52+ // DropRoleAndDropAndChangeOwnedBy(ctx context.Context, role, newOwner, database string) error
53+ // ChangeAndDropOwnedBy(ctx context.Context, role, newOwner, database string) error
5354 GetSetRoleOnDatabasesRoleSettings (ctx context.Context , role string ) ([]* SetRoleOnDatabaseRoleSetting , error )
54- DropRole (ctx context.Context , role string ) error
55- DropSchema (ctx context.Context , database , schema string , cascade bool ) error
56- DropExtension (ctx context.Context , database , extension string , cascade bool ) error
55+ // DropRole(ctx context.Context, role string) error
56+ // DropSchema(ctx context.Context, database, schema string, cascade bool) error
57+ ListSchema (ctx context.Context , database string ) ([]string , error )
58+ ListExtensions (ctx context.Context , database string ) ([]string , error )
59+ // DropExtension(ctx context.Context, database, extension string, cascade bool) error
5760 GetRoleMembership (ctx context.Context , role string ) ([]string , error )
5861 GetTablesInSchema (ctx context.Context , db , schema string ) ([]* TableOwnership , error )
59- ChangeTableOwner (ctx context.Context , db , table , owner string ) error
62+ // ChangeTableOwner(ctx context.Context, db, table, owner string) error
6063 GetTypesInSchema (ctx context.Context , db , schema string ) ([]* TypeOwnership , error )
61- ChangeTypeOwnerInSchema (ctx context.Context , db , schema , typeName , owner string ) error
62- DropPublication (ctx context.Context , dbname , name string ) error
63- RenamePublication (ctx context.Context , dbname , oldname , newname string ) error
64+ // ChangeTypeOwnerInSchema(ctx context.Context, db, schema, typeName, owner string) error
65+ // DropPublication(ctx context.Context, dbname, name string) error
66+ // RenamePublication(ctx context.Context, dbname, oldname, newname string) error
6467 GetPublication (ctx context.Context , dbname , name string ) (* PublicationResult , error )
65- CreatePublication (ctx context.Context , dbname string , builder * CreatePublicationBuilder ) error
66- UpdatePublication (ctx context.Context , dbname , publicationName string , builder * UpdatePublicationBuilder ) error
67- DropReplicationSlot (ctx context.Context , name string ) error
68- CreateReplicationSlot (ctx context.Context , dbname , name , plugin string ) error
68+ // CreatePublication(ctx context.Context, dbname string, builder *CreatePublicationBuilder) error
69+ // UpdatePublication(ctx context.Context, dbname, publicationName string, builder *UpdatePublicationBuilder) error
70+ // DropReplicationSlot(ctx context.Context, name string) error
71+ // CreateReplicationSlot(ctx context.Context, dbname, name, plugin string) error
6972 GetReplicationSlot (ctx context.Context , name string ) (* ReplicationSlotResult , error )
7073 GetUser () string
7174 GetHost () string
0 commit comments