Skip to content
This repository has been archived by the owner on Aug 24, 2024. It is now read-only.

Commit

Permalink
0.1.10 JUPYTER snippet for product item creation
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfliegner committed Jul 21, 2022
1 parent c7d0e4c commit 4ca7df1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 130 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "BitemporalReactive"
uuid = "2fc36f50-c0f6-442e-a77c-cf0acc93eef6"
authors = ["michaelfliegner <[email protected]>"]
version = "0.1.9"
version = "0.1.10"

[deps]
BitemporalPostgres = "e513cd14-23e6-48df-acf1-d9bc8fa5674b"
Expand Down
147 changes: 18 additions & 129 deletions populateAndTest.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
{
"cell_type": "code",
"execution_count": 94,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -31,7 +31,7 @@
},
{
"cell_type": "code",
"execution_count": 95,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
Expand All @@ -45,7 +45,7 @@
},
{
"cell_type": "code",
"execution_count": 96,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -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",
Expand Down Expand Up @@ -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()"
]
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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))"
Expand All @@ -301,7 +190,7 @@
},
{
"cell_type": "code",
"execution_count": 102,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -375,7 +264,7 @@
},
{
"cell_type": "code",
"execution_count": 103,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -465,7 +354,7 @@
},
{
"cell_type": "code",
"execution_count": 104,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -488,7 +377,7 @@
},
{
"cell_type": "code",
"execution_count": 105,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -507,7 +396,7 @@
},
{
"cell_type": "code",
"execution_count": 106,
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
Expand Down

2 comments on commit 4ca7df1

@michaelfliegner
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:
0.1.10 JUPYTER snippet for product item creation in last workflow

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/64703

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.10 -m "<description of version>" 4ca7df18359f5d977a6b464167ba39a46f5c6991
git push origin v0.1.10

Please sign in to comment.