This repository contains samples of Object-Relational Mapping (ORM) libraries used with MariaDB.
This README will walk you through the steps for getting the samples applications up and running using MariaDB. To ensure success, please follow the instructions in order.
Note: The code provided within this repository is completely open source. Please feel free to use it as you see fit.
For these sample applications, no matter which project you target, will require the following to be installed/enabled on your machine:
- MariaDB Client, used to connect to MariaDB instances.
MariaDB Platform integrates transactional and analytical products so developers can build modern applications by enriching transactions with real-time analytics and historical data, creating insightful experiences and compelling opportunities for customers – and for businesses, endless ways to monetize data.
To get started using MariaDB locally you can choose one of the following options:
SkySQL is the first and only database-as-a-service (DBaaS) to bring the full power of MariaDB Platform to the cloud, including its support for transactional, analytical and hybrid workloads. Built on Kubernetes, and optimized for cloud infrastructure and services, SkySQL combines ease of use and self-service with enterprise reliability and world-class support – everything needed to safely run mission-critical databases in the cloud, and with enterprise governance.
In order to run the applications in this repo you will need to have a MariaDB instance to connect to. For more information please check out "Get Started with MariaDB".
Download this code directly or use git (through CLI or a client) to retrieve the code using git clone
:
$ git clone https://github.com/mariadb-corporation/dev-example-orms.git
Use the following command within (a terminal window) to connect to MariaDB and execute a SQL script to create and load the data to be used by all samples.
$ mariadb --host [your_host_address] --port [port_no] --user [db_user] -p[user_password] < data/schema.sql
Example:
$ mariadb --host 127.0.0.1 --port 3306 --user app_user -pPassword123! < data/schema.sql
The sample applications contained within this repository vary by language and ORM library. Check out the src directory for the options and more details!
Please feel free to submit PR's, issues or requests to this project project directly.
If you have any other questions, comments, or looking for more information on MariaDB please check out:
Or reach out to us diretly via: