From aa12b63d7d87789a55537ae951f62ed0a10b95d5 Mon Sep 17 00:00:00 2001 From: Sergejs Vinniks Date: Thu, 6 Sep 2018 14:44:45 +0300 Subject: [PATCH] Added version number and release notes. --- README.md | 6 ++++++ RELEASE_NOTES.md | 2 ++ src/packages/log$.pkb | 8 ++++++++ src/packages/log$.pks | 3 +++ 4 files changed, 19 insertions(+) create mode 100644 RELEASE_NOTES.md diff --git a/README.md b/README.md index b900c10..ab5ef07 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ +# Version + +1.0.0 + +[Release notes](RELEASE_NOTES.md) + # Table of contents * [Summary](#summary) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md new file mode 100644 index 0000000..42d56b8 --- /dev/null +++ b/RELEASE_NOTES.md @@ -0,0 +1,2 @@ +# 1.0.0 +- Initial release \ No newline at end of file diff --git a/src/packages/log$.pkb b/src/packages/log$.pkb index 00658ac..218ff4a 100644 --- a/src/packages/log$.pkb +++ b/src/packages/log$.pkb @@ -16,6 +16,8 @@ CREATE OR REPLACE PACKAGE BODY log$ IS limitations under the License. */ + c_VERSION CONSTANT VARCHAR2(8) := '1.0.0'; + SUBTYPE CHARN IS CHAR NOT NULL; TYPE t_message_resolvers IS @@ -59,6 +61,12 @@ CREATE OR REPLACE PACKAGE BODY log$ IS v_message_cache t_message_cache; + FUNCTION version + RETURN VARCHAR IS + BEGIN + RETURN c_VERSION; + END; + /* Logger internal warnings and errors */ PROCEDURE log_event ( diff --git a/src/packages/log$.pks b/src/packages/log$.pks index 2033137..b39f659 100644 --- a/src/packages/log$.pks +++ b/src/packages/log$.pks @@ -104,6 +104,9 @@ CREATE OR REPLACE PACKAGE log$ IS argument_notation BOOLEANN := FALSE ); + FUNCTION version + RETURN VARCHAR; + /* Initilalization methods */ PROCEDURE reset;