Skip to content

A tool to read data from database then write data into database,html,csv,excel .Can select from cache like memory.

Notifications You must be signed in to change notification settings

dogHere/auto-tools-sqlto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sqlto

A tool to read data from database then write data into database,html,csv,excel .

Example

import com.github.doghere.sqlto._

SQLReader.use(cacheConnection)(cacheReader => {
      cacheReader.fetch("select username,user_group from user") match {
          case None => println("nothing")
          case Some(resultSet) => {
              // do something ... 
              resultSet.toTable(memConnection,"user_tmp")
              // select from memory
              SQLReader.use(memConnection)(memReader=>{
                 // deal with memReader
                 memReader.fetch("""
                 select user_group,count(username) as user_count
                 from user_tmp 
                 group by user_group
                 """)
              })
          }
      }
    }
)

About

A tool to read data from database then write data into database,html,csv,excel .Can select from cache like memory.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages