{"id":19064984,"url":"https://github.com/netkiller/mysql-zmq-plugin","last_synced_at":"2025-04-28T11:25:33.584Z","repository":{"id":12715453,"uuid":"15388063","full_name":"netkiller/mysql-zmq-plugin","owner":"netkiller","description":"ZeroMQ / ØMQ for MySQL","archived":false,"fork":false,"pushed_at":"2018-01-08T18:54:31.000Z","size":9,"stargazers_count":23,"open_issues_count":3,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T09:11:25.075Z","etag":null,"topics":["mysql","netkiller","zeromq"],"latest_commit_sha":null,"homepage":"http://netkiller.github.io/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netkiller.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":"2013-12-23T05:04:44.000Z","updated_at":"2024-03-08T10:06:10.000Z","dependencies_parsed_at":"2022-07-21T16:18:41.198Z","dependency_job_id":null,"html_url":"https://github.com/netkiller/mysql-zmq-plugin","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/netkiller%2Fmysql-zmq-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkiller%2Fmysql-zmq-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkiller%2Fmysql-zmq-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netkiller%2Fmysql-zmq-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netkiller","download_url":"https://codeload.github.com/netkiller/mysql-zmq-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249420371,"owners_count":21268834,"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":["mysql","netkiller","zeromq"],"created_at":"2024-11-09T00:48:06.381Z","updated_at":"2025-04-18T03:32:23.826Z","avatar_url":"https://github.com/netkiller.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"mysql-zmq-plugin\n================\n\n[![Join the chat at https://gitter.im/netkiller/mysql-zmq-plugin](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/netkiller/mysql-zmq-plugin?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\nZeroMQ / ØMQ for MySQL\n\nhttp://zeromq.org/event:zeromq-for-mysql\n\nBuild\n-----\n\t# yum install zeromq3-devel\n\t\n\t# cmake .\n\t# make \u0026\u0026 make install\n\nInstall \u0026 uninstall\n-------------------\n\n\tdrop function zmq_client;\n\tdrop function zmq_publish;\n\t\n\tcreate function zmq_client returns string soname 'libzeromq.so';\n\tcreate function zmq_publish returns string soname 'libzeromq.so';\n\n\tmysql\u003e SELECT * FROM `mysql`.`func` LIMIT 1000;\n\t+--------------+-----+--------------+----------+\n\t| name         | ret | dl           | type     |\n\t+--------------+-----+--------------+----------+\n\t| image_crc32  |   0 | image.so     | function |\n\t| image_rename |   0 | image.so     | function |\n\t| image_move   |   0 | image.so     | function |\n\t| image_remove |   0 | image.so     | function |\n\t| image_check  |   0 | image.so     | function |\n\t| fifo_write   |   0 | fifo.so      | function |\n\t| fifo_read    |   0 | fifo.so      | function |\n\t| fifo_remove  |   0 | fifo.so      | function |\n\t| fifo_create  |   0 | fifo.so      | function |\n\t| zmq_publish  |   0 | libzeromq.so | function |\n\t| zmq_client   |   0 | libzeromq.so | function |\n\t+--------------+-----+--------------+----------+\n\t11 rows in set (0.00 sec)\n\t\nTest\n----\n\n### 编译zeromq server 测试程序\t\n\tcd test\n\tcmake .\n\tmake\n\t./server\n\t\n### 在mysql终端中运行测试SQL \t\n\tmysql\u003e select zmq_client('tcp://localhost:5555','Hello world!');\n\t+---------------------------------------------------+\n\t| zmq_client('tcp://localhost:5555','Hello world!') |\n\t+---------------------------------------------------+\n\t| Hello world! OK                                   |\n\t+---------------------------------------------------+\n\t1 row in set (0.01 sec)\n\t\n\tmysql\u003e select zmq_client('tcp://localhost:5555',mobile) from demo;\n\t+-------------------------------------------+\n\t| zmq_client('tcp://localhost:5555',mobile) |\n\t+-------------------------------------------+\n\t| 13113668891 OK                            |\n\t| 13113668892 OK                            |\n\t| 13113668893 OK                            |\n\t| 13322993040 OK                            |\n\t| 13588997745 OK                            |\n\t+-------------------------------------------+\n\t5 rows in set (0.03 sec)\n\t\n手工编译\n--------\n\tgcc -O3  -g  -I/usr/include/mysql -I/usr/include  -fPIC -lm -lz -shared -o libzeromq.so zeromq.c\n\tsudo mv libzeromq.so /usr/lib/mysql/plugin/\n\n\n[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/netkiller/mysql-zmq-plugin/trend.png)](https://bitdeli.com/free \"Bitdeli Badge\")\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetkiller%2Fmysql-zmq-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetkiller%2Fmysql-zmq-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetkiller%2Fmysql-zmq-plugin/lists"}