{"id":63,"date":"2008-04-16T18:05:41","date_gmt":"2008-04-17T00:05:41","guid":{"rendered":"http:\/\/thenoyes.com\/littlenoise\/?p=63"},"modified":"2008-04-30T07:36:44","modified_gmt":"2008-04-30T13:36:44","slug":"proxy-projects","status":"publish","type":"post","link":"https:\/\/thenoyes.com\/littlenoise\/?p=63","title":{"rendered":"Proxy Projects"},"content":{"rendered":"<p>When I first heard of MySQL Proxy, I thought, &#8220;That&#8217;s way cool.&#8221;<\/p>\n<p>Then I thought, &#8220;Neat toy, but I can&#8217;t think of anything I&#8217;d actually want it for. I can spell &#8216;SELECT&#8217; without the client correcting me, and I&#8217;d just as soon use the built in logs. &#8221;<\/p>\n<p>Now I&#8217;m starting to gather ideas that might be practical:<br \/>\n<!--more--><br \/>\n&#8211; Accept INSERT\/UPDATE\/DELETE statements on information_schema tables, and transform them to the equivalent ALTER\/CREATE\/DROP statements (Freenode often sees questions about how to alter character sets on all tables at once, or how to drop all tables in a database)<\/p>\n<p>&#8211; SELECT * EXCEPT (field list) (For those too lazy to type it all out)<\/p>\n<p>&#8211; Check &#8211;safe-updates or &#8211;i-am-a-dummy. If set, change all SELECT * to SELECT * EXCEPT (any BLOB or TEXT column) (Since blobs are heavy) (This was Jan&#8217;s suggestion)<\/p>\n<p>&#8211; Add CONNECT BY PRIOR syntax (for getting hierarchies out of adjacency lists)<\/p>\n<p>&#8211; Aliases for custom-defined field types (so my_special_field becomes varchar(150))<\/p>\n<p>Anything else you&#8217;d like to see in a Proxy script, but haven&#8217;t had a chance to write yet?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I first heard of MySQL Proxy, I thought, &#8220;That&#8217;s way cool.&#8221; Then I thought, &#8220;Neat toy, but I can&#8217;t think of anything I&#8217;d actually want it for. I can spell &#8216;SELECT&#8217; without the client correcting me, and I&#8217;d just as soon use the built in logs. &#8221; Now I&#8217;m starting to gather ideas that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4],"tags":[],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-mysql"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p2IBF1-11","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=63"}],"version-history":[{"count":0,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=\/wp\/v2\/posts\/63\/revisions"}],"wp:attachment":[{"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thenoyes.com\/littlenoise\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}