mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 02:23:10 -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
|
}, 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) {
|
func (d *SyncServerDatasource) prepare(ctx context.Context) (err error) {
|
||||||
if err = d.streamID.Prepare(d.db); err != nil {
|
if err = d.streamID.Prepare(d.db); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue