Skip to content

yurimarx/iris-sql-python-sample

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

iris-sql-python-sample

Samples how to create InterSystems IRIS SQL Stored Procedures using Embedded Python

Installation

  1. Clone/git pull the repo into any local directory
$ git clone https://github.com/yurimarx/iris-sql-python-sample.git
  1. Open a Docker terminal in this directory and run:
$ docker-compose build
  1. Run the IRIS container:
$ docker-compose up -d 
  1. For use Geopy with GetFullAddress SQL Stored Procedure: Go to SQL Execution on Management Portal:
SELECT 
ID, City, Name, State, Street, Zip, dc_pythonsql.GetFullAddress(Street, City, State) As FullAddress 
FROM dc_pythonsql.Company

Geopy

  1. For use Chronyk with GetHumanDate SQL Stored Procedure: Go to SQL Execution on Management Portal:
SELECT 
ID, City, Name, State, Street, Zip, dc_pythonsql.GetHumanDate('yesterday') As Datetime      
FROM dc_pythonsql.Company

Chronyk

Credits

About

Samples of python running inside SQL InterSystems IRIS Database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published