mirror of
				https://github.com/cldellow/sqlite-parquet-vtable.git
				synced 2025-11-04 02:39:56 +00:00 
			
		
		
		
	Initial checkin of CSV table
parquet.cc is a fork of the sample CSV virtual table at https://www.sqlite.org/src/artifact?ci=trunk&filename=ext/misc/csv.c So far the only changes are those needed to make it compile cleanly in C++11 mode.
This commit is contained in:
		
							
								
								
									
										25
									
								
								parquet/make
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										25
									
								
								parquet/make
									
									
									
									
									
										Executable file
									
								
							@@ -0,0 +1,25 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
set -x
 | 
			
		||||
 | 
			
		||||
PARQUET_CPP=${PARQUET_CPP:-~/src/parquet-cpp}
 | 
			
		||||
 | 
			
		||||
# make obj file
 | 
			
		||||
clean() {
 | 
			
		||||
  rm -f *.o *.so
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
build() {
 | 
			
		||||
  clean
 | 
			
		||||
  g++ -std=c++11 -Wall -fPIC -c -g parquet.cc -I ../sqlite -lz -ldl -lpthread 
 | 
			
		||||
 | 
			
		||||
  g++ -shared -o libparquet.so parquet.o \
 | 
			
		||||
    ${PARQUET_CPP}/build/release/libparquet.a \
 | 
			
		||||
    ${PARQUET_CPP}/thrift_ep/src/thrift_ep-install/lib/libthrift.a \
 | 
			
		||||
    ${PARQUET_CPP}/build/release/libarrow.so \
 | 
			
		||||
    /usr/lib/x86_64-linux-gnu/libboost_regex.so
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
fn=${1:-build}
 | 
			
		||||
 | 
			
		||||
"$fn"
 | 
			
		||||
		Reference in New Issue
	
	Block a user