io.drinkwater:drinkwater-datasource-postgres

create, test and use services fast

License

License

Categories

Categories

Data
GroupId

GroupId

io.drinkwater
ArtifactId

ArtifactId

drinkwater-datasource-postgres
Last Version

Last Version

0.0.9
Release Date

Release Date

Type

Type

jar
Description

Description

create, test and use services fast

Download drinkwater-datasource-postgres

How to add to project

<!-- https://jarcasting.com/artifacts/io.drinkwater/drinkwater-datasource-postgres/ -->
<dependency>
    <groupId>io.drinkwater</groupId>
    <artifactId>drinkwater-datasource-postgres</artifactId>
    <version>0.0.9</version>
</dependency>
// https://jarcasting.com/artifacts/io.drinkwater/drinkwater-datasource-postgres/
implementation 'io.drinkwater:drinkwater-datasource-postgres:0.0.9'
// https://jarcasting.com/artifacts/io.drinkwater/drinkwater-datasource-postgres/
implementation ("io.drinkwater:drinkwater-datasource-postgres:0.0.9")
'io.drinkwater:drinkwater-datasource-postgres:jar:0.0.9'
<dependency org="io.drinkwater" name="drinkwater-datasource-postgres" rev="0.0.9">
  <artifact name="drinkwater-datasource-postgres" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.drinkwater', module='drinkwater-datasource-postgres', version='0.0.9')
)
libraryDependencies += "io.drinkwater" % "drinkwater-datasource-postgres" % "0.0.9"
[io.drinkwater/drinkwater-datasource-postgres "0.0.9"]

Dependencies

compile (2)

Group / Artifact Type Version
io.drinkwater : drinkwater-datasource jar 0.0.9
org.slf4j : slf4j-api jar 1.7.21

runtime (1)

Group / Artifact Type Version
org.postgresql : postgresql jar 9.4.1212

test (4)

Group / Artifact Type Version
junit : junit jar 4.12
org.assertj : assertj-core jar 3.6.1
org.mockito : mockito-core jar 2.3.0
org.slf4j : slf4j-simple jar 1.7.21

Project Modules

There are no modules declared in this project.

Build Status

DrinkWater

layer on top of camel to create and manage (micro)services easily

features:

  • not production ready
  • api still changing
  • create and test services fast

Get Started

from getstarted example

with maven

<!-- replace ${drinkwater.current.version} with the current version :-) -->
<dependency>
  <groupId>io.drinkwater</groupId>
  <artifactId>drinkwater-core</artifactId>
  <version>${drinkwater.current.version}</version>
</dependency>

create a service (needs an interface for now)

public interface ISimpleService {
    String ping(String message);
}

implement the interface

public class SimpleServiceImpl implements ISimpleService {

    public String prefix;

    @Override
    public String ping(String message) {
        return String.format("%s %s", prefix, message);
    }
}

configure the app

public class App extends ApplicationBuilder{
    public static void main(String[] args) throws Exception {
        Drinkwater.run(App.class);
    }

    @Override
    public void configure() {
        addService("test", ISimpleService.class, SimpleServiceImpl.class).asRest();
    }
}

add a properties file (drinkwater-application.properties) with the following content

test.prefix=pong

and run it.

next open link http://localhost:????/test/ping?message=hello

you should receive "pong hello"

Next

Versions

Version
0.0.9
0.0.8
0.0.7