mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-11 08:03:09 -06:00
oh well, I tried
This commit is contained in:
parent
75d61f28f6
commit
1268b31108
|
|
@ -56,6 +56,13 @@ func (d *SyncServerDatasource) NewDatabaseSnapshot(ctx context.Context) (*shared
|
|||
}, nil
|
||||
}
|
||||
|
||||
func (d *SyncServerDatasource) NewDatabaseWritable(ctx context.Context) (*shared.DatabaseSnapshot, error) {
|
||||
return &shared.DatabaseSnapshot{
|
||||
Database: &d.Database,
|
||||
// not setting a transaction because SQLite doesn't support it
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (d *SyncServerDatasource) prepare(ctx context.Context) (err error) {
|
||||
if err = d.streamID.Prepare(d.db); err != nil {
|
||||
return err
|
||||
|
|
|
|||
Loading…
Reference in a new issue