Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1trkRX-008vr8-GL for pgsql-general@arkaria.postgresql.org; Mon, 10 Mar 2025 21:13:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1trkRW-000XHF-4Y for pgsql-general@arkaria.postgresql.org; Mon, 10 Mar 2025 21:13:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1trkRV-000XGM-Pw for pgsql-general@lists.postgresql.org; Mon, 10 Mar 2025 21:13:45 +0000 Received: from mout.perfora.net ([74.208.4.197]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1trkRT-00262n-2r for pgsql-general@lists.postgresql.org; Mon, 10 Mar 2025 21:13:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=meddatainc.com; s=s1-ionos; t=1741641223; x=1742246023; i=agents@meddatainc.com; bh=OCVnzeJNDzJU9hX82vXoaEPEH5ITz5raQVYnBuy+4II=; h=X-UI-Sender-Class:Date:In-Reply-To:References:MIME-Version: Content-Type:Content-Transfer-Encoding:Subject:To:From:Message-ID: cc:content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=RL3Y8QU1BHuZjnZMEl4viOglboHUqNr9yelRRzYfrP8BlMFw7NknXfcmOD7x7vs0 2Bv8a1V2QCID88NYD0sl3aHnNmTCYU3/A4YwV3TwtlKlggCB+8xBGtVjcFElXhBUl Buk9oyjMDlMU/FH6BN0BhYKvCVdurK0sf6BYB2ULRsyo32hoVASnI1DxWhGZo3NzF 3nzBsJ5+2SNowmZACeECq/18WNR4ZxgTklhVZkn7QcL9nLzTCgEr8F4Arf/4i+UFZ zb4nGO67iCKCh2AIci4g7EUpbRc3nOmNyMO9WrQZOYVMSlzYh/EN0udvvTALGJQiT W0qLZIvjVdqttMGc5Q== X-UI-Sender-Class: 55c96926-9e95-11ee-ae09-1f7a4046a0f6 Received: from [192.168.106.147] ([96.245.190.98]) by mrelay.perfora.net (mreueus003 [74.208.5.2]) with ESMTPSA (Nemesis) id 0Mbf87-1tYhcY19wT-00JKsg for ; Mon, 10 Mar 2025 22:13:43 +0100 Date: Mon, 10 Mar 2025 17:13:33 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <1CB9D882-99B8-4E26-8683-E5A4A0F735C6@meddatainc.com> References: <84A5765B-1D3C-485B-B852-99D63D53963E@meddatainc.com> <1CB9D882-99B8-4E26-8683-E5A4A0F735C6@meddatainc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Creating files with testdata To: pgsql-general@lists.postgresql.org From: H Message-ID: X-Provags-ID: V03:K1:V8L/8qXOiWEgAouY4LYimITlUPMbSvpXaomP/XAlnvQWSx/XRX1 8/e4TtP1CEB5raUWMXvq/HHA0e/lWI5ngC4fPuycb8wGmQSDM+bEy69gDxc2vuTE59ni9D2 S/lAWPv4FeE2vrue5dE9jl7mJ1OBAbrirb68HVJ2aLtw6hbiNWiWgccApxIb4mMl5usolBY thEANH0D9sBJFZxkGDakQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:bAZyAFGJ3e0=;AZ4/ciSiFHSJCQmEigzhqRERUY8 RHtns1lYNWOuTRYZRzxNiRt+yV82SwQkDuqzo3sd7Yfwc07CWuC5NB7dW3LJ7QnTlPbEHj3ba LzsX5R1zdPnSvRvX0tnWNnvwtx2IAKauahYb5KXDK1lQiEWH6klbwCym/9PJ333nN4X0df/tB isjTVhyzcWGcMx/Zmz4dkQwL59RhwehPe9UCji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d0PJhSLw158w1e1bVlqgnOuVUjNhtvuR3Gmm267uymcXTE8ayrsPFUerb 6/o4fMoB51EB9QJxUh5v1WipUnl5JsCYPHe0DVYLyEx9OWj0RKwkQW0G2W1FwbQYn6O List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On March 10, 2025 5:09:46 PM GMT-04:00, H wrote: >On March 10, 2025 3:22:41 PM GMT-04:00, Francisco Olarte > wrote: >>On Mon, 10 Mar 2025 at 19:17, H wrote: >>=2E=2E=2E >>> After entering my test data into the markdown file for the given >test >>scenario, I would then run an awk script or similar to create a SQL >>file with the various CTE INSERT statements=2E Howevever, it gets >complex >>since I need to handle 1:N relationships between tables in the >markdown >>file=2E=2E=2E >>> I hope the above outline is understandable and am interested in >>comments and thoughts on my above approach=2E >> >>I do not think MD would be a good source format=2E Being a developer I >>would recommend taking your favorite scripting language ( perl / >>python / lua / js , whatever ), build a big object ( which can be >>easily helped by some mini-functions to build a little DSL ) and then >>spit sql from it ( for developemewnt it is normally better then using >>whatever db connection your language has, as it leaves an >>understandable sql script )=2E >> >>I have done this with perl for some projects, built a driver which >>defined several helper functions, then dofile("xx=2Edat") which returned >>a big hash and then a series of loops on the result to write the SQL >>in whatever order was neccessary=2E >> >>Francisco Olarte=2E > >The plan is to use the same format for later adding information into >the finished application=2E By the way, all information is text, either >paragraphs, sentences or single words=2E I am also contemplating using Pandoc to process the markdown file=2E Pando= c builds an AST which can then be processed as desired=2E Awk processes a f= ile line-by-line which is not ideal=2E