Size returns current database size in bytes as seen by this transaction.
()
| 79 | |
| 80 | // Size returns current database size in bytes as seen by this transaction. |
| 81 | func (tx *Tx) Size() int64 { |
| 82 | return int64(tx.meta.Pgid()) * int64(tx.db.pageSize) |
| 83 | } |
| 84 | |
| 85 | // Writable returns whether the transaction can perform write operations. |
| 86 | func (tx *Tx) Writable() bool { |