Konstantin Lebedev
6 months ago
39 changed files with 465 additions and 26 deletions
-
80.github/workflows/s3tests.yml
-
5Makefile
-
2other/java/client/src/main/proto/filer.proto
-
1weed/command/filer.go
-
2weed/command/s3.go
-
1weed/command/server.go
-
71weed/filer/abstract_sql/abstract_sql_store.go
-
4weed/filer/arangodb/arangodb_store.go
-
4weed/filer/cassandra/cassandra_store.go
-
4weed/filer/elastic/v7/elastic_store.go
-
4weed/filer/etcd/etcd_store.go
-
11weed/filer/filer.go
-
20weed/filer/filer_search.go
-
2weed/filer/filerstore.go
-
9weed/filer/filerstore_translate_path.go
-
22weed/filer/filerstore_wrapper.go
-
4weed/filer/hbase/hbase_store.go
-
4weed/filer/leveldb/leveldb_store.go
-
4weed/filer/leveldb2/leveldb2_store.go
-
4weed/filer/leveldb3/leveldb3_store.go
-
4weed/filer/mongodb/mongodb_store.go
-
4weed/filer/mysql/mysql_sql_gen.go
-
4weed/filer/postgres/postgres_sql_gen.go
-
4weed/filer/redis/universal_redis_store.go
-
4weed/filer/redis2/universal_redis_store.go
-
4weed/filer/redis3/universal_redis_store.go
-
4weed/filer/redis_lua/universal_redis_store.go
-
4weed/filer/rocksdb/rocksdb_store.go
-
6weed/filer/sqlite/sqlite_store.go
-
21weed/filer/sqlite/sqlite_store_gen.go
-
4weed/filer/tikv/tikv_store.go
-
4weed/filer/ydb/ydb_store.go
-
3weed/pb/filer.proto
-
28weed/pb/filer_pb/filer.pb.go
-
2weed/pb/filer_pb/filer_grpc.pb.go
-
115weed/s3api/s3api_object_handlers_list.go
-
1weed/s3api/s3api_server.go
-
9weed/server/filer_grpc_server.go
-
2weed/server/filer_grpc_server_traverse_meta.go
@ -0,0 +1,21 @@ |
|||||
|
package sqlite |
||||
|
|
||||
|
import ( |
||||
|
"fmt" |
||||
|
"github.com/seaweedfs/seaweedfs/weed/filer/mysql" |
||||
|
|
||||
|
_ "github.com/go-sql-driver/mysql" |
||||
|
"github.com/seaweedfs/seaweedfs/weed/filer/abstract_sql" |
||||
|
) |
||||
|
|
||||
|
type SqlGenSqlite struct { |
||||
|
mysql.SqlGenMysql |
||||
|
} |
||||
|
|
||||
|
var ( |
||||
|
_ = abstract_sql.SqlGenerator(&SqlGenSqlite{}) |
||||
|
) |
||||
|
|
||||
|
func (gen *SqlGenSqlite) GetSqlListRecursive(tableName string) string { |
||||
|
return fmt.Sprintf("SELECT `directory`, `name`, `meta` FROM `%s` WHERE `directory` || `name` > ? AND ((`dirhash` = ? AND `name` like ?) OR `directory` || `name` like ?) ORDER BY `directory` || `name` ASC LIMIT ?", tableName) |
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue