(database *db.Postgres)
| 31 | } |
| 32 | |
| 33 | func NewDataWriter(database *db.Postgres) *DataWriter { |
| 34 | return &DataWriter{ |
| 35 | database: database, |
| 36 | txOptions: pgx.TxOptions{IsoLevel: pgx.Serializable, AccessMode: pgx.ReadWrite}, |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | // Write method writes a collection of tuples and attributes to the database for a specific tenant. |
| 41 | // It returns an EncodedSnapToken upon successful write or an error if the write fails. |
no outgoing calls
no test coverage detected