mirror of
				https://github.com/cldellow/sqlite-parquet-vtable.git
				synced 2025-11-04 02:39:56 +00:00 
			
		
		
		
	Generate queries from templates
Huzzah, a bunch of failures have appeared.
This commit is contained in:
		
							
								
								
									
										10
									
								
								tests/create-template
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										10
									
								
								tests/create-template
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
set -euo pipefail
 | 
			
		||||
 | 
			
		||||
query=${1:?must provide query}
 | 
			
		||||
 | 
			
		||||
echo "$query"
 | 
			
		||||
psql parquet postgres <<EOF
 | 
			
		||||
COPY ($query) TO STDOUT WITH (DELIMITER '|', NULL '');
 | 
			
		||||
EOF
 | 
			
		||||
		Reference in New Issue
	
	Block a user