postgresListDataFlow

inline fun <Data : Any> RealtimeChannel.postgresListDataFlow(schema: String = "public", table: String, filter: FilterOperation? = null, primaryKey: PrimaryKey<Data>): Flow<List<Data>>(source)
inline fun <Data : Any, Value> RealtimeChannel.postgresListDataFlow(schema: String = "public", table: String, filter: FilterOperation? = null, primaryKey: KProperty1<Data, Value>): Flow<List<Data>>(source)

This function retrieves the initial data from the table and then listens for changes. It automatically handles inserts, updates and deletes.

If you want more control, use the postgresChangeFlow function.

Return

a Flow of the current data in a list. This list is updated and emitted whenever a change occurs.

Parameters

schema

the schema of the table

table

the table name

filter

an optional filter to filter the data

primaryKey

the primary key of the Data type


inline fun <Data : Any> RealtimeChannel.postgresListDataFlow(schema: String = "public", table: String, filter: FilterOperation? = null, primaryKeys: List<PrimaryKey<Data>>): Flow<List<Data>>(source)

This function retrieves the initial data from the table and then listens for changes. It automatically handles inserts, updates and deletes.

If you want more control, use the postgresChangeFlow function.

Return

a Flow of the current data in a list. This list is updated and emitted whenever a change occurs.

Parameters

schema

the schema of the table

table

the table name

filter

an optional filter to filter the data

primaryKeys

the list of primary key of the Data type


@JvmName(name = "postgresListDataFlowMultiplePks")
inline fun <Data : Any, Value> RealtimeChannel.postgresListDataFlow(schema: String = "public", table: String, filter: FilterOperation? = null, primaryKeys: List<KProperty1<Data, Value>>): Flow<List<Data>>(source)

This function retrieves the initial data from the table and then listens for changes. It automatically handles inserts, updates and deletes.

If you want more control, use the postgresChangeFlow function.

Return

a Flow of the current data in a list. This list is updated and emitted whenever a change occurs.

Parameters

schema

the schema of the table

table

the table name

filter

an optional filter to filter the data

primaryKeys

the list of primary keys of the Data type