{"id":15722281,"url":"https://github.com/souris-dev/chapel-data-object","last_synced_at":"2026-05-18T03:35:38.079Z","repository":{"id":54435449,"uuid":"307883091","full_name":"souris-dev/Chapel-Data-Object","owner":"souris-dev","description":"Database connector for the chapel programming language","archived":false,"fork":false,"pushed_at":"2021-02-26T09:24:23.000Z","size":2102,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T23:43:32.288Z","etag":null,"topics":["chapel","database"],"latest_commit_sha":null,"homepage":"","language":"Chapel","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/souris-dev.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":"2020-10-28T02:16:13.000Z","updated_at":"2021-02-26T09:24:28.000Z","dependencies_parsed_at":"2022-08-13T15:40:12.069Z","dependency_job_id":null,"html_url":"https://github.com/souris-dev/Chapel-Data-Object","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/souris-dev%2FChapel-Data-Object","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souris-dev%2FChapel-Data-Object/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souris-dev%2FChapel-Data-Object/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/souris-dev%2FChapel-Data-Object/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/souris-dev","download_url":"https://codeload.github.com/souris-dev/Chapel-Data-Object/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246395572,"owners_count":20770240,"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":["chapel","database"],"created_at":"2024-10-03T22:06:11.005Z","updated_at":"2026-05-18T03:35:38.017Z","avatar_url":"https://github.com/souris-dev.png","language":"Chapel","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chapel Data Object\nDatabase connector for the Chapel programming language.\nThis `mason` package aims to provide database connectivity for some\nrelational database management systems. \nCurrently, support is planned for MySQL, PostgreSQL and SQLite.\nSupport for other database management systems can be easily added by\nimplementing the required interfaces.\n\n## Usage examples:\n\n### MySQL\n\n```chapel\nmodule Main {\n    use DatabaseCommunicator;\n    use DatabaseCommunicator.DatabaseCommunicationObjects.QueryBuilder; // for Statement class\n    use MySQL;\n\n    proc main() throws {\n        var conHandler = new ConnectionHandler(MySQLConnection, \"localhost;testdb;username;password\");\n        var cursor = conHandler.cursor();\n\n        var createStmt = \"CREATE TABLE CONTACTS (id INT PRIMARY KEY, name VARCHAR(10));\";\n        cursor.execute(new Statement(createStmt));\n        cursor.execute(new Statement(\"INSERT INTO CONTACTS VALUES (6, 'B');\"));\n\n        var stmt: Statement = new Statement(\"SELECT * FROM CONTACTS WHERE name = ?1\", true);\n        stmt.setValue(1, \"B\");\n        \n        cursor.execute(stmt);\n\n        for row in cursor.fetchall() {\n            writeln(row![0], \"\\t\", row![1]);\n        }\n\n        cursor.close();\n        conHandler.commit();\n        conHandler.close();\n    }\n}\n```\n\n(For more about the `Statement` class, please see the documentation.)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouris-dev%2Fchapel-data-object","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsouris-dev%2Fchapel-data-object","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsouris-dev%2Fchapel-data-object/lists"}