oh well, I tried

This commit is contained in:
Neil Alexander 2022-09-28 17:12:12 +01:00
parent 75d61f28f6
commit 1268b31108
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -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