-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CORE-15805: Avro for getting schema SQL (#1389)
* Added VirtualNodeSchemaRequest and Response and add to VirtualNodeManagement avro class
- Loading branch information
Showing
4 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...o-schema/src/main/resources/avro/net/corda/data/virtualnode/VirtualNodeSchemaRequest.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"type": "record", | ||
"name": "VirtualNodeSchemaRequest", | ||
"namespace": "net.corda.data.virtualnode", | ||
"doc": "Represents the input parameters for getting a schema SQL", | ||
"fields": [ | ||
{ | ||
"name": "dbType", | ||
"doc": "The type of database to get the schema from.", | ||
"type": { | ||
"name": "DbTypes", | ||
"type": "enum", | ||
"symbols": [ | ||
"CRYPTO", | ||
"UNIQUENESS", | ||
"VAULT" | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "virtualNodeShortHash", | ||
"type": [ "null", "string" ], | ||
"doc": "Short hash of the virtual node." | ||
}, | ||
{ | ||
"name": "cpiChecksum", | ||
"type": [ "null", "string" ], | ||
"doc": "The checksum of the CPI file." | ||
} | ||
] | ||
} |
11 changes: 11 additions & 0 deletions
11
...-schema/src/main/resources/avro/net/corda/data/virtualnode/VirtualNodeSchemaResponse.avsc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"type": "record", | ||
"name": "VirtualNodeSchemaResponse", | ||
"namespace": "net.corda.data.virtualnode", | ||
"fields": [ | ||
{ | ||
"name": "schemaSql", | ||
"type": "string" | ||
} | ||
] | ||
} |