{"id":18778895,"url":"https://github.com/ramsailopal/irismysql","last_synced_at":"2025-12-17T19:30:15.594Z","repository":{"id":53019282,"uuid":"356238206","full_name":"RamSailopal/irismysql","owner":"RamSailopal","description":"Linux command line utility to migrate mysql/mariadb tables into Intersystems IRIS globals","archived":false,"fork":false,"pushed_at":"2021-04-09T11:51:09.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-29T10:27:36.979Z","etag":null,"topics":["intersystems-iris","mysql"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RamSailopal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-09T10:57:38.000Z","updated_at":"2021-04-26T13:07:30.000Z","dependencies_parsed_at":"2022-08-23T21:50:20.421Z","dependency_job_id":null,"html_url":"https://github.com/RamSailopal/irismysql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamSailopal%2Firismysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamSailopal%2Firismysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamSailopal%2Firismysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RamSailopal%2Firismysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RamSailopal","download_url":"https://codeload.github.com/RamSailopal/irismysql/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239690074,"owners_count":19681035,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["intersystems-iris","mysql"],"created_at":"2024-11-07T20:17:44.484Z","updated_at":"2025-12-17T19:30:15.507Z","avatar_url":"https://github.com/RamSailopal.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":" \u003cb\u003eAUTHOR\u003cb\u003e - Raman Sailopal\n\n BACKGROUND - Utility to translate mysql tables into IRIS globals\n\n PREREQUISITES - It is assumed that a working version of Intersystems IRIS as well as mysql or mariadb is running\n\n It is also assumed that the iriscmd is installed as instructed here - https://github.com/RamSailopal/iriscmd\n\n PARAMETERS - \n            - 1 - User name for mysql\n            - 2 - Password for mysql\n            - 3 - mysql host to connect to\n            - 4 - mysql user name\n            - 5 - mysql password\n            - 6 - Intersystems IRIS instance name\n            - 7 - Intersystems IRIS namespace\n\n USAGE - irismysql \"sqluser\" \"sqlpass\" \"localhost\" \"test\" \"test_tab\" \"IRIS\" \"USER\"\n\n EXAMPLE - \n\n Assuming a mysql table test_tab in database test described as follows:\n\n    +-------+-------------+------+-----+---------+-------+\n    | Field | Type        | Null | Key | Default | Extra |\n    +-------+-------------+------+-----+---------+-------+\n    | col1  | double      | NO   |     | NULL    |       |\n    | col2  | double      | NO   |     | NULL    |       |\n    | col3  | varchar(50) | NO   | PRI | NULL    |       |\n    +-------+-------------+------+-----+---------+-------+\n    3 rows in set (0.00 sec)\n\n And with data:\n\n    +--------+--------+-----------+\n    | col1   | col2   | col3      |\n    +--------+--------+-----------+\n    | 1.5142 | 0.7207 | TEST1     |\n    | 3.5012 |  0.479 | TEST2     |\n    | 0.0134 | 0.0027 | TEST3     |\n    | 3.8937 | 1.0071 | TEST4     |\n    +--------+--------+-----------+\n4 rows in set (0.00 sec)\n\n Running the utility will create a global as follows:\n\n    Global ^test.testtab\n    ^test.testtab(\"TEST1\",\"col1\")=1.5142\n                          \"col2\")=\"0.7207\"\n    ^test.testtab(\"TEST2\",\"col1\")=3.5012\n                          \"col2\")=\"0.479\"\n    ^test.testtab(\"TEST3\",\"col1\")=\"0.0134\"\n                          \"col2\")=\"0.0027\"\n    ^test.testtab(\"TEST4\",\"col1\")=3.8937\n                          \"col2\")=1.0071\n\n IMPORTANT - The utility will abort if there is no primary key assigned to any columns in the table as the primary key will be translated to the primary subscript for the global\n       \n INSTALLATION - Run:\n\n    git clone https://github.com/RamSailopal/irismysql.git\n    mv irismysql/irismysql /usr/local/bin \t\n\n    \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framsailopal%2Firismysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Framsailopal%2Firismysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Framsailopal%2Firismysql/lists"}