io.lsdconsulting.lsd.distributed.postgres.repository.Trimmer.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lsd-distributed-postgres-connector Show documentation
Show all versions of lsd-distributed-postgres-connector Show documentation
This is a PostgreSQL version of the data connector for the distributed data storage.
package io.lsdconsulting.lsd.distributed.postgres.repository
fun String.trimToSize(size: Int) = this.substring(0, kotlin.math.min(this.length, size))