Add abstract interface for SQL databases
Change-Id: I72072dd1056a071b48fb54ba8ff844d21ed86011
This commit is contained in:
parent
e100c4b16f
commit
c6dc79e52d
36
io.murano.databases.SqlDatabase/Classes/SqlDatabase.yaml
Normal file
36
io.murano.databases.SqlDatabase/Classes/SqlDatabase.yaml
Normal 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()
|
10
io.murano.databases.SqlDatabase/manifest.yaml
Normal file
10
io.murano.databases.SqlDatabase/manifest.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user