Package org.apache.opendal
Class ServiceConfig.Sqlite
java.lang.Object
org.apache.opendal.ServiceConfig.Sqlite
- All Implemented Interfaces:
ServiceConfig
- Enclosing interface:
- ServiceConfig
Configuration for service sqlite.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.opendal.ServiceConfig
ServiceConfig.AliyunDrive, ServiceConfig.Alluxio, ServiceConfig.Atomicserver, ServiceConfig.Azblob, ServiceConfig.Azdls, ServiceConfig.Azfile, ServiceConfig.B2, ServiceConfig.Cacache, ServiceConfig.Chainsafe, ServiceConfig.CloudflareKv, ServiceConfig.Compfs, ServiceConfig.Cos, ServiceConfig.D1, ServiceConfig.Dashmap, ServiceConfig.Dbfs, ServiceConfig.Dropbox, ServiceConfig.Etcd, ServiceConfig.Fs, ServiceConfig.Gcs, ServiceConfig.Gdrive, ServiceConfig.Ghac, ServiceConfig.Github, ServiceConfig.Gridfs, ServiceConfig.HdfsNative, ServiceConfig.Http, ServiceConfig.Huggingface, ServiceConfig.Icloud, ServiceConfig.Ipfs, ServiceConfig.Ipmfs, ServiceConfig.Koofr, ServiceConfig.Lakefs, ServiceConfig.Libsql, ServiceConfig.Memcached, ServiceConfig.Memory, ServiceConfig.MiniMoka, ServiceConfig.Moka, ServiceConfig.Mongodb, ServiceConfig.Monoiofs, ServiceConfig.Mysql, ServiceConfig.NebulaGraph, ServiceConfig.Obs, ServiceConfig.Onedrive, ServiceConfig.Oss, ServiceConfig.Pcloud, ServiceConfig.Persy, ServiceConfig.Postgresql, ServiceConfig.Redb, ServiceConfig.Redis, ServiceConfig.S3, ServiceConfig.Seafile, ServiceConfig.Sftp, ServiceConfig.Sled, ServiceConfig.Sqlite, ServiceConfig.Supabase, ServiceConfig.Surrealdb, ServiceConfig.Swift, ServiceConfig.Upyun, ServiceConfig.VercelArtifacts, ServiceConfig.VercelBlob, ServiceConfig.Webdav, ServiceConfig.Webhdfs, ServiceConfig.YandexDisk
-
Field Summary
Modifier and TypeFieldDescriptionfinal String
Set the connection_string of the sqlite service.final String
Set the key field name of the sqlite service to read/write.final String
set the working directory, all operations will be performed under it.final String
Set the table name of the sqlite service to read/write.final String
Set the value field name of the sqlite service to read/write. -
Constructor Summary
-
Method Summary
-
Field Details
-
connectionString
Set the connection_string of the sqlite service.
This connection string is used to connect to the sqlite service.
The format of connect string resembles the url format of the sqlite client:
sqlite::memory:
sqlite:data.db
sqlite://data.db
For more information, please visit https://docs.rs/sqlx/latest/sqlx/sqlite/struct.SqliteConnectOptions.html.
-
table
Set the table name of the sqlite service to read/write.
-
keyField
Set the key field name of the sqlite service to read/write.
Default to
key
if not specified. -
valueField
Set the value field name of the sqlite service to read/write.
Default to
value
if not specified. -
root
set the working directory, all operations will be performed under it.
default: "/"
-
-
Constructor Details
-
Sqlite
public Sqlite()
-
-
Method Details
-
scheme
Description copied from interface:ServiceConfig
The scheme of the service.- Specified by:
scheme
in interfaceServiceConfig
- Returns:
- the scheme
-
configMap
Description copied from interface:ServiceConfig
Convert the structured config to a type erased config map.- Specified by:
configMap
in interfaceServiceConfig
- Returns:
- the config map
-