Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:117858 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 3992 invoked from network); 6 Jun 2022 17:29:53 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 6 Jun 2022 17:29:53 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B7298180538 for ; Mon, 6 Jun 2022 12:15:26 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-ua1-f50.google.com (mail-ua1-f50.google.com [209.85.222.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 6 Jun 2022 12:15:26 -0700 (PDT) Received: by mail-ua1-f50.google.com with SMTP id q1so5110784uao.1 for ; Mon, 06 Jun 2022 12:15:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basereality-com.20210112.gappssmtp.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=/GK3CIQgnGkwqaLN3iYLwiDcyDlBuXRWAt5uAF24sNg=; b=GK+dkwqdBoU0j5fN6m1mvwwV5Q4tR/fykmZSQJVVi1t2HGI1IHTlmGmHnKZ8Il/aBv Bka+BMiTaNnCUHwCylX/Jp4AnA6ParZH1wk9MAvOD8hYdE51i6xh28OWnnwaQHFSiwgM H1kUdbfYsgOhmE0VR52iIHfhRu9McsOFVQpyv4ZhvM/H5MmZvxC8d67yixMnoP6Tji4h ACKOm43zKq3e9hFEUdOw2WLAAsbb2whB8qAkxQi24uDm/jHF2oWK0QW9IskgEr4bsIxU 33TbDtihoQWe71KTkRilH7A46j5HkAQXZCKgRepO2rw/9TEqlXnswOAGPiWYUR+x9UvP m/tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=/GK3CIQgnGkwqaLN3iYLwiDcyDlBuXRWAt5uAF24sNg=; b=LSi30pQTPf+j7hl9oao6J+MkmPQDRZEhOg3pxw0bGd+xjoF5dSwHPntQ74wlYw6cXl yyY2XtQaGqysMagRmNzKUpfsJmPwcHq8++uJSdVmIf6+dSrzQKXhPH1QYcpc7qHKGuv8 qo3GEJq3q0v6Rkalkfds1ySQ2TApcQiWfZ6cGZgY2/7Aw8v2Etwy5Z8Iq8Dl6l1dYzIw pqL29p0Wh8PJsA8XfWIkfYmzfgcyuAYFHiN3kO5dxeubpctIwjHl13vdV3lz6TDoHUHw yI/7JWlBqNNlIv8GJQx35ljIPkzjWy8+kPxzGujNZ9i+DmhBUdKIYI02eAeTP5gbAXw3 qbXg== X-Gm-Message-State: AOAM533+4xyvdSQYTighqQ466IreNMbBBo4N2dNAeS8Pue+KrdeoTnTr pm9MpuSXOmTxS0DOZC5UcLV6CumKYICjRlWgB9fQFcfrT0wmaQ== X-Google-Smtp-Source: ABdhPJxGtV5f7YxNrUjaIUtqZASfRgDxXMIx/n37gexi+2jkagmWmkRbeK2/Re30u3+bv9aXc86C3yiYzCWeTNbNNMk= X-Received: by 2002:ab0:704d:0:b0:369:3dbd:a999 with SMTP id v13-20020ab0704d000000b003693dbda999mr18814421ual.7.1654542925382; Mon, 06 Jun 2022 12:15:25 -0700 (PDT) MIME-Version: 1.0 Date: Mon, 6 Jun 2022 20:15:12 +0100 Message-ID: To: PHP internals Content-Type: text/plain; charset="UTF-8" Subject: DB specific PDO subclasses questions. From: Danack@basereality.com (Dan Ackroyd) Hi, I'm looking at making an RFC for subclassing PDO to expose database specific methods in a less magic way, aka implementing what was discussed here: https://externals.io/message/100773#100813 I have two questions for people who use the PDO with SQLite or Postgres 1. Are any of the functions that are specific to those databases horribly designed and need changing? As the functions would be 'copied across' from where they are now, changes could be made without having horrible BC breaks. That is, are any of these functions horrible to use: PDO::pgsqlCopyFromArray PDO::pgsqlCopyFromFile PDO::pgsqlCopyToArray PDO::pgsqlCopyToFile PDO::pgsqlGetNotify PDO::pgsqlGetPid PDO::pgsqlLOBCreate PDO::pgsqlLOBOpen PDO::pgsqlLOBUnlink SQLIte specific functions: PDO::sqliteCreateAggregate PDO::sqliteCreateCollation PDO::sqliteCreateFunction 2. Other than the SQLite blobOpen functionality, does anyone know of any other functionality that is exposed by SQLite or Postgres that isn't currently exposed through the magic PDO methods? cheers Dan Ack