diff --git a/Project.toml b/Project.toml index ce8f2ba..3b7a3d4 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "BitemporalReactive" uuid = "2fc36f50-c0f6-442e-a77c-cf0acc93eef6" authors = ["michaelfliegner "] -version = "0.1.9" +version = "0.1.10" [deps] BitemporalPostgres = "e513cd14-23e6-48df-acf1-d9bc8fa5674b" diff --git a/populateAndTest.ipynb b/populateAndTest.ipynb index da46fb4..28c6a01 100644 --- a/populateAndTest.ipynb +++ b/populateAndTest.ipynb @@ -9,7 +9,7 @@ }, { "cell_type": "code", - "execution_count": 94, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -31,7 +31,7 @@ }, { "cell_type": "code", - "execution_count": 95, + "execution_count": null, "metadata": {}, "outputs": [], "source": [] @@ -45,7 +45,7 @@ }, { "cell_type": "code", - "execution_count": 96, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -70,23 +70,9 @@ }, { "cell_type": "code", - "execution_count": 97, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "4-element Vector{Int64}:\n", - " 1\n", - " 2\n", - " 3\n", - " 4" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "LifeInsuranceDataModel.load_model()\n", "\n", @@ -118,35 +104,9 @@ }, { "cell_type": "code", - "execution_count": 98, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "PostgreSQL connection (CONNECTION_OK) with parameters:\n", - " user = postgres\n", - " password = ********************\n", - " channel_binding = prefer\n", - " dbname = postgres\n", - " host = 127.0.0.1\n", - " port = 5432\n", - " client_encoding = UTF8\n", - " options = -c DateStyle=ISO,YMD -c IntervalStyle=iso_8601 -c TimeZone=UTC\n", - " application_name = LibPQ.jl\n", - " sslmode = prefer\n", - " sslcompression = 0\n", - " sslsni = 1\n", - " ssl_min_protocol_version = TLSv1.2\n", - " gssencmode = prefer\n", - " krbsrvname = postgres\n", - " target_session_attrs = any" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "LifeInsuranceDataModel.connect()" ] @@ -160,19 +120,9 @@ }, { "cell_type": "code", - "execution_count": 99, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "1" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "p = LifeInsuranceDataModel.Partner()\n", "pr = LifeInsuranceDataModel.PartnerRevision(description=\"Partner 1\")\n", @@ -195,54 +145,9 @@ }, { "cell_type": "code", - "execution_count": 100, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "4-element Vector{TariffRevision}:\n", - " TariffRevision\n", - "| KEY | VALUE |\n", - "|-----------------------|---------------------|\n", - "| description::String | Life Risk Insurance |\n", - "| id::DbId | 1 |\n", - "| ref_component::DbId | 1 |\n", - "| ref_invalidfrom::DbId | 9223372036854775807 |\n", - "| ref_validfrom::DbId | 2 |\n", - "\n", - " TariffRevision\n", - "| KEY | VALUE |\n", - "|-----------------------|---------------------|\n", - "| description::String | Terminal Illness |\n", - "| id::DbId | 2 |\n", - "| ref_component::DbId | 2 |\n", - "| ref_invalidfrom::DbId | 9223372036854775807 |\n", - "| ref_validfrom::DbId | 3 |\n", - "\n", - " TariffRevision\n", - "| KEY | VALUE |\n", - "|-----------------------|-------------------------|\n", - "| description::String | Occupational Disability |\n", - "| id::DbId | 3 |\n", - "| ref_component::DbId | 3 |\n", - "| ref_invalidfrom::DbId | 9223372036854775807 |\n", - "| ref_validfrom::DbId | 4 |\n", - "\n", - " TariffRevision\n", - "| KEY | VALUE |\n", - "|-----------------------|----------------------|\n", - "| description::String | Profit participation |\n", - "| id::DbId | 4 |\n", - "| ref_component::DbId | 4 |\n", - "| ref_invalidfrom::DbId | 9223372036854775807 |\n", - "| ref_validfrom::DbId | 5 |\n" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "# create Tariffs\n", "function create_tariff(dsc)\n", @@ -268,25 +173,9 @@ }, { "cell_type": "code", - "execution_count": 101, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "1-element Vector{Tariff}:\n", - " Tariff\n", - "| KEY | VALUE |\n", - "|-------------------|-------|\n", - "| id::DbId | 2 |\n", - "| ref_history::DbId | 3 |\n", - "| ref_version::DbId | 3 |\n" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "find(Tariff,SQLWhereExpression(\"id=?\",ProfitParticipationTariff))\n", "find(Tariff, SQLWhereExpression(\"id=?\", TerminalIllnessTariff))" @@ -301,7 +190,7 @@ }, { "cell_type": "code", - "execution_count": 102, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -375,7 +264,7 @@ }, { "cell_type": "code", - "execution_count": 103, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -465,7 +354,7 @@ }, { "cell_type": "code", - "execution_count": 104, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -488,7 +377,7 @@ }, { "cell_type": "code", - "execution_count": 105, + "execution_count": null, "metadata": {}, "outputs": [], "source": [ @@ -507,7 +396,7 @@ }, { "cell_type": "code", - "execution_count": 106, + "execution_count": null, "metadata": {}, "outputs": [], "source": [