https://github.com/saladinkzn/spring-data-tarantool
Spring Data reporitories for Tarantool (http://tarantool.org)
https://github.com/saladinkzn/spring-data-tarantool
java spring-data spring-data-tarantool tarantool
Last synced: 5 months ago
JSON representation
Spring Data reporitories for Tarantool (http://tarantool.org)
- Host: GitHub
- URL: https://github.com/saladinkzn/spring-data-tarantool
- Owner: saladinkzn
- License: mit
- Created: 2017-01-15T14:54:57.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-30T19:51:06.000Z (almost 9 years ago)
- Last Synced: 2023-07-26T23:49:44.626Z (almost 3 years ago)
- Topics: java, spring-data, spring-data-tarantool, tarantool
- Language: Java
- Size: 158 KB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spring-data-tarantool
[](https://travis-ci.org/saladinkzn/spring-data-tarantool)
[](https://coveralls.io/github/saladinkzn/spring-data-tarantool?branch=space_name)

[](#copyright-and-license)
Spring data repositories support for [Tarantool](https://tarantool.org)
Usage:
Add following snippet to your project:
```groovy
repositories {
jcenter()
}
dependencies {
compile 'ru.shadam:spring-data-tarantool:0.3.0'
}
```
and enable tarantool repositories:
```java
@EnableTarantoolRepositories
public class ApplicationConfiguration {
@Bean
public TarantoolClientOps, 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](LICENSE).