SetSchemas sets the given schemas and returns a new storage object.
(ctx context.Context, dbSchemas []schema.DatabaseSchema)
| 108 | |
| 109 | // SetSchemas sets the given schemas and returns a new storage object. |
| 110 | func (r RootStorage) SetSchemas(ctx context.Context, dbSchemas []schema.DatabaseSchema) (RootStorage, error) { |
| 111 | msg, err := r.serializeRootValue(r.SRV.TablesBytes(), dbSchemas) |
| 112 | if err != nil { |
| 113 | return RootStorage{}, err |
| 114 | } |
| 115 | return RootStorage{msg}, nil |
| 116 | } |
| 117 | |
| 118 | // Clone returns a clone of the calling storage. |
| 119 | func (r RootStorage) Clone() RootStorage { |
no test coverage detected