Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
org.jetbrains.xodus:xodus-compress
Advanced tools
Xodus is pure Java transactional schema-less embedded database
JetBrains Xodus is a transactional schema-less embedded database that is written in Java and Kotlin. It was initially developed for JetBrains YouTrack, an issue tracking and project management tool. Xodus is also used in JetBrains Hub, the user management platform for JetBrains' team tools, and in some internal JetBrains projects.
To start using Xodus, define dependencies:
<!-- in Maven project -->
<dependency>
<groupId>org.jetbrains.xodus</groupId>
<artifactId>xodus-openAPI</artifactId>
<version>2.0.1</version>
</dependency>
// in Gradle project
dependencies {
compile 'org.jetbrains.xodus:xodus-openAPI:2.0.1'
}
Read more about managing dependencies.
There are three different ways to deal with data, which results in three different API layers: Environments, Entity Stores and Virtual File Systems.
Add dependency on org.jetbrains.xodus:xodus-environment:2.0.1
.
try (Environment env = Environments.newInstance("/home/me/.myAppData")) {
env.executeInTransaction(txn -> {
final Store store = env.openStore("Messages", StoreConfig.WITHOUT_DUPLICATES, txn);
store.put(txn, StringBinding.stringToEntry("Hello"), StringBinding.stringToEntry("World!"));
});
}
Add dependency on org.jetbrains.xodus:xodus-entity-store:2.0.1
, org.jetbrains.xodus:xodus-environment:2.0.1
and org.jetbrains.xodus:xodus-vfs:2.0.1
.
try (PersistentEntityStore entityStore = PersistentEntityStores.newInstance("/home/me/.myAppData")) {
entityStore.executeInTransaction(txn -> {
final Entity message = txn.newEntity("Message");
message.setProperty("hello", "World!");
});
}
Add dependency on org.jetbrains.xodus:xodus-vfs:2.0.1
and org.jetbrains.xodus:xodus-environment:2.0.1
.
try (Environment env = Environments.newInstance("/home/me/.myAppData")) {
final VirtualFileSystem vfs = new VirtualFileSystem(env);
env.executeInTransaction(txn -> {
final File file = vfs.createFile(txn, "Messages");
try (DataOutputStream output = new DataOutputStream(vfs.writeFile(txn, file))) {
output.writeUTF("Hello ");
output.writeUTF("World!");
} catch (IOException e) {
throw new ExodusException(e);
}
});
vfs.shutdown();
}
Gradle is used to build, test, and publish. JDK 1.8 or higher is required. To build the project, run:
./gradlew build
To assemble JARs and skip running tests, run:
./gradlew assemble
FAQs
Xodus is pure Java transactional schema-less embedded database
We found that org.jetbrains.xodus:xodus-compress demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.