![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
replicache-transaction
Advanced tools
Adapter from Replicache's WriteTransaction interface to some key/value storage.
This is an adapter from Replicache's WriteTransaction to some key/value storage.
It's useful when you want to reuse Replicache mutator functions on the backend. All you have to do is provide a suitable implementation of the "Storage" interface, for example against your backend SQL database and then execute each of the mutations in a Replicache push request using them.
ReplicacheTransaction
also implements an in-memory cache for entries over the lifetime
of the transaction so that repeated reads and writes for same key don't go back and forth
to the database.
import mutators from './my-mutators.ts';
class MyStorage implements Storage {
// ...
}
const myStorage = new MyStorage(dbconn, spaceID, version);
const tx = new ReplicacheTransaction(storage, clientID);
const createTodo = mutators.createTodo;
await createTodo(tx, {title: 'Hello, shared mutators', complete: false});
await tx.flush();
See replicache-express
for a complete example.
It is important that the getEntries()
method returns keys in order of
their UTF-8 byte encoding. This is a collation option in most databases.
See https://blog.replicache.dev/blog/replicache-11-adventures-in-text-encoding
for more information.
PRs and feature requests are welcome!
FAQs
Adapter from Replicache's WriteTransaction interface to some key/value storage.
The npm package replicache-transaction receives a total of 39 weekly downloads. As such, replicache-transaction popularity was classified as not popular.
We found that replicache-transaction demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.