Add abstract interface for SQL databases

Change-Id: I72072dd1056a071b48fb54ba8ff844d21ed86011
This commit is contained in:
Serg Melikyan 2014-12-09 16:21:05 -08:00
parent e100c4b16f
commit c6dc79e52d
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,36 @@
Namespaces:
=: io.murano.databases
std: io.murano
Name: SqlDatabase
Extends:
- std:Application
Methods:
createDatabase:
Arguments:
- database:
Contract: $.string().notNull()
createUser:
Arguments:
- username:
Contract: $.string().notNull()
- password:
Contract: $.string().notNull()
assignUser:
Arguments:
- username:
Contract: $.string().notNull()
- database:
Contract: $.string().notNull()
getConnectionString:
Arguments:
- username:
Contract: $.string().notNull()
- password:
Contract: $.string().notNull()

View File

@ -0,0 +1,10 @@
Format: 1.0
Type: Library
FullName: io.murano.databases
Name: SQL Library
Description: |
This is the interface defining API for different SQL - RDBMS databases
Author: 'Mirantis, Inc'
Tags: [SQL, RDBMS]
Classes:
io.murano.databases.SqlDatabase: SqlDatabase.yaml