spring-data-tarantool

spring-data for tarantool

License

License

MIT
Categories

Categories

Ant Build Tools Data
GroupId

GroupId

ru.shadam
ArtifactId

ArtifactId

spring-data-tarantool
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

spring-data-tarantool
spring-data for tarantool
Project URL

Project URL

https://github.com/saladinkzn/spring-data-tarantool
Source Code Management

Source Code Management

https://github.com/saladinkzn/spring-data-tarantool

Download spring-data-tarantool

How to add to project

<!-- https://jarcasting.com/artifacts/ru.shadam/spring-data-tarantool/ -->
<dependency>
    <groupId>ru.shadam</groupId>
    <artifactId>spring-data-tarantool</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/ru.shadam/spring-data-tarantool/
implementation 'ru.shadam:spring-data-tarantool:0.1.0'
// https://jarcasting.com/artifacts/ru.shadam/spring-data-tarantool/
implementation ("ru.shadam:spring-data-tarantool:0.1.0")
'ru.shadam:spring-data-tarantool:jar:0.1.0'
<dependency org="ru.shadam" name="spring-data-tarantool" rev="0.1.0">
  <artifact name="spring-data-tarantool" type="jar" />
</dependency>
@Grapes(
@Grab(group='ru.shadam', module='spring-data-tarantool', version='0.1.0')
)
libraryDependencies += "ru.shadam" % "spring-data-tarantool" % "0.1.0"
[ru.shadam/spring-data-tarantool "0.1.0"]

Dependencies

runtime (2)

Group / Artifact Type Version
org.springframework.data : spring-data-keyvalue jar 1.1.6.RELEASE
org.tarantool : connector jar 1.7.0

Project Modules

There are no modules declared in this project.

spring-data-tarantool

Build Status Coverage Status Maintenance Status License

Spring data repositories support for Tarantool

Usage:

Add following snippet to your project:

repositories {
  jcenter()
}

dependencies {
  compile 'ru.shadam:spring-data-tarantool:0.3.0'
}

and enable tarantool repositories:

@EnableTarantoolRepositories 
public class ApplicationConfiguration {
    @Bean
    public TarantoolClientOps<Integer, List<?>, Object, List<?>> tarantoolSyncOps(
        TarantoolClient tarantoolClient
    ) {
        return tarantoolClient.syncOps();
    }

    @Bean(destroyMethod = "close")
    public TarantoolClient tarantoolClient(
        SocketChannelProvider socketChannelProvider,
        TarantoolClientConfig config
    ) {
        return new TarantoolClientImpl(socketChannelProvider, config);
    }

    @Bean
    public TarantoolClientConfig tarantoolClientConfig() {
        final TarantoolClientConfig config = new TarantoolClientConfig();
        config.username = "guest";
        return config;
    }

    @Bean
    public SocketChannelProvider socketChannelProvider() {
        return new SimpleSocketChannelProvider("localhost", 3301);
    }
}

Copyright and License

Copyright 2017 (c) Timur Shakurov.

All versions, present and past, of spring-data-tarantool are licensed under MIT license.

Versions

Version
0.1.0