SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
conditionally compile sqlite
chrislu4aa39ef33f89
diff --git a/Makefile b/Makefileindex 844c671723..f324cfc2d4 100644--- a/Makefile+++ b/Makefile@@ -8,4 +8,4 @@ install:cd weed; go installfull_install:- cd weed; go install -tags "elastic gocdk"+ cd weed; go install -tags "elastic gocdk sqlite"diff --git a/weed/filer/sqlite/doc.go b/weed/filer/sqlite/doc.gonew file mode 100644index 0000000000..833addf542--- /dev/null+++ b/weed/filer/sqlite/doc.go@@ -0,0 +1,9 @@+/*++Package sqlite is for sqlite filer store.++The referenced "modernc.org/sqlite" library is too big when compiled.+So this is only compiled in "make full_install".++*/+package sqlitediff --git a/weed/filer/sqlite/sqlite_store.go b/weed/filer/sqlite/sqlite_store.goindex ca9d387860..70a4bf390c 100644--- a/weed/filer/sqlite/sqlite_store.go+++ b/weed/filer/sqlite/sqlite_store.go@@ -1,5 +1,6 @@-//go:build linux || darwin || windows+//go:build (linux || darwin || windows) && sqlite// +build linux darwin windows+// +build sqlite// limited GOOS due to modernc.org/libc/unistddiff --git a/weed/filer/sqlite/sqlite_store_unsupported.go b/weed/filer/sqlite/sqlite_store_unsupported.goindex 0fba1ea330..351d2e501f 100644--- a/weed/filer/sqlite/sqlite_store_unsupported.go+++ b/weed/filer/sqlite/sqlite_store_unsupported.go@@ -1,5 +1,5 @@-//go:build !linux && !darwin && !windows && !s390 && !ppc64le && !mips64-// +build !linux,!darwin,!windows,!s390,!ppc64le,!mips64+//go:build !linux && !darwin && !windows && !s390 && !ppc64le && !mips64 && !sqlite+// +build !linux,!darwin,!windows,!s390,!ppc64le,!mips64,!sqlite// limited GOOS due to modernc.org/libc/unistd