{"id":16935834,"url":"https://github.com/knu/postgresql-plruby","last_synced_at":"2025-10-26T12:37:04.566Z","repository":{"id":568200,"uuid":"199592","full_name":"knu/postgresql-plruby","owner":"knu","description":"PL/Ruby procedural language for the PostgreSQL database system by Guy Decoux","archived":false,"fork":false,"pushed_at":"2017-07-04T15:00:53.000Z","size":642,"stargazers_count":114,"open_issues_count":10,"forks_count":38,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-05-20T13:08:35.838Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://rubyforge.org/projects/plruby/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knu.png","metadata":{"files":{"readme":"README.markdown","changelog":"Changes","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-05-13T06:35:52.000Z","updated_at":"2025-02-23T12:55:08.000Z","dependencies_parsed_at":"2022-07-08T02:00:30.922Z","dependency_job_id":null,"html_url":"https://github.com/knu/postgresql-plruby","commit_stats":null,"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"purl":"pkg:github/knu/postgresql-plruby","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fpostgresql-plruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fpostgresql-plruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fpostgresql-plruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fpostgresql-plruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knu","download_url":"https://codeload.github.com/knu/postgresql-plruby/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knu%2Fpostgresql-plruby/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259754376,"owners_count":22906362,"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":[],"created_at":"2024-10-13T20:55:27.442Z","updated_at":"2025-10-26T12:37:04.467Z","avatar_url":"https://github.com/knu.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"PL/ruby\n=======\n\n  PL/Ruby is a loadable procedural language for the PostgreSQL database\n  system that enables the Ruby language to create functions and trigger\n  procedures.\n\n\nPrerequisite\n------------\n\n\u003e * ruby 1.8.7 or later (maybe 1.8.6 too)\n\u003e * postgresql \u003e= 7.3\n\n  All PostgreSQL headers need to be installed. Command (see `INSTALL` in the\n  directory postgresql-7.x.y)\n\n        make install-all-headers\n\nInstallation\n------------\n\n        ruby extconf.rb\n        make\n        make install\n\n  You may need to specify some of the following extconf.rb options:\n\n        --with-pg-config=\u003clocation of the pg_config command of PostgreSQL\u003e\n\n  Specifies the location of pg_config.\n  e.g. --with-pg-config=/usr/local/bin/pg_config\n\n        --with-greenplum\n\n  Builds plruby for Greenplum instead of PostgreSQL.\n\n        --disable-conversion\n\n  By default plruby tries to convert a postgres type to a ruby class.\n  This option gives the possibility to disable all conversions.\n\n       --with-suffix=\u003csuffix to add\u003e\n\n  Specifies a suffix to add to the extension module file.\n  e.g. `ruby extconf.rb --with-suffix=_geo` will create\n  `plruby_geo.so`.\n\n        --with-safe-level\n\n  Lowers the safe level which the plruby functions are run under.\n  (default: 12; meaning the maximum)\n\n        --with-timeout=\u003cseconds\u003e\n\n  Sets the timeout for each function call. (default: none)\n\n        --with-main-safe-level\n\n  Lowers the safe level which the main thread waiting for timeouts is\n  run under. (default: 3) This option is read only when --with-timeout\n  is given.\n\n\nTest (and examples)\n-------------------\n\n  WARNING: if plruby was compiled without --disable-conversion you\n  must **FIRST** run `make install` before `make test`.\n\n        make test\n\n  This will run the following two commands:\n\n        ( cd test/plt; ./runtest )\n        ( cd test/plp; ./runtest )\n\n  The database `plruby_test` is created and then destroyed.  Don't use\n  it if you have such a database.\n\n  Now you are ready to create the PL/Ruby language in PostgreSQL.\n\n  Since the `pg_language` system catalog is private to each database,\n  the new language can be created only for individual databases, or in\n  the template1 database.  In the latter case, it is automatically\n  available in all newly created databases.\n\n  The commands to create the new language are:\n\n        create function plruby_call_handler () returns language_handler\n        as 'path-to-plruby-shared-lib'\n        language 'C';\n\n        create trusted language 'plruby'\n        handler plruby_call_handler\n        lancompiler 'PL/Ruby';\n\n\n  The `trusted` keyword on `create language` tells PostgreSQL,\n  that all users (not only those with superuser privilege) are\n  permitted to create functions with `LANGUAGE 'plruby'`. This is\n  absolutely safe, because there is nothing a normal user can do\n  with PL/Ruby, to get around access restrictions he/she has.\n\nDocumentation\n-------------\n\n  see `plruby.rd` and `plruby.html`\n\nDevelopment\n-----------\n\n  New releases and sources can be obtained from \u003chttp://github.com/knu/postgresql-plruby\u003e\n\nCopying\n-------\n\n  This extension module is copyrighted free software by Guy Decoux.\n\n  You can redistribute it and/or modify it under the same term as Ruby.\n\n* * *\n\nGuy Decoux \u003cts@moulon.inra.fr\u003e (original author, deceased in July 2008)\nAkinori MUSHA \u003cknu@idaemons.org\u003e (current maintainer)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Fpostgresql-plruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknu%2Fpostgresql-plruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknu%2Fpostgresql-plruby/lists"}