All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scalikejdbc.streams.DatabasePublisherFactory.scala Maven / Gradle / Ivy

The newest version!
package scalikejdbc.streams

/**
 * Factory of DatabasePublisher.
 */
private[streams] object DatabasePublisherFactory {

  /**
   * Creates and returns new DatabasePublisher instance.
   */
  private[streams] def createNewPublisher[A](
    publisherSettings: DatabasePublisherSettings[A],
    asyncExecutor: AsyncExecutor,
    sql: StreamReadySQL[A]
  ): DatabasePublisher[A] = {

    new DatabasePublisher[A](publisherSettings, sql, asyncExecutor)
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy