JdbcFeatureStore

class JdbcFeatureStore(dataSource: DataSource, dialect: JdbcDialect, json: Json = ff4kJson) : FeatureStore(source)

Stores each feature as a JSON document in JdbcSchema.FEATURES_TABLE. Create the schema with JdbcSchema.create before first use. Pass a json built on ff4kSerializersModule to persist custom strategies and property types.

Constructors

Link copied to clipboard
constructor(dataSource: DataSource, dialect: JdbcDialect, json: Json = ff4kJson)

Functions

Link copied to clipboard
open suspend override fun delete(id: String)
Link copied to clipboard
open suspend override fun get(id: String): Feature?
Link copied to clipboard
open suspend override fun getAll(): List<Feature>
Link copied to clipboard
open suspend override fun put(feature: Feature)
Link copied to clipboard
open suspend override fun update(id: String, transform: (Feature) -> Feature): Feature