Skip to content

mariadb-corporation/dev-example-r2dbc-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

R2DBC Sample Application

⚠️ [UNMAINTAINED] This repository has been moved and is currently maintained here. ⚠️


This repository contains a simple (Apache Maven-based) Java application. The application contains Spring Framework dependencies, including Spring Boot and Spring Data R2DBC.

The purpose of this application is to demonstrate capabilities of MariaDB Connector/R2DBC and Spring Data R2DBC.

This application was used as the live demonstration in a MariaDB Webinar.

Preparing the database

In order to use this application you will need to first run the following SQL commands on a running instance of MariaDB.

CREATE DATABASE todo;

CREATE TABLE todo.tasks (
  id INT(11) unsigned NOT NULL AUTO_INCREMENT,
  description VARCHAR(500) NOT NULL,
  completed BOOLEAN NOT NULL DEFAULT 0,
  PRIMARY KEY (id)
);

Configuring the application

Next, make sure you you update the database connection settings in the application.properties file.

spring.r2dbc.url=r2dbc:mariadb://127.0.0.1:3306/todo
spring.r2dbc.username=app_user
spring.r2dbc.password=Password123!

Support and Contribution

Please feel free to submit PR's, issues or requests to this project project or projects within the official MariaDB Corporation GitHub organization.

If you have any other questions, comments, or looking for more information on MariaDB please check out:

Or reach out to us diretly via:

License

License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages