sqlshare-package: API for SQLShare web application

Description Details Author(s) References Examples

Description

Provides API for SQL statements on databases hosted on SQLShare (http://escience.washington.edu/sqlshare). An authentication file should be created at $HOME/.sqlshare/config and be formatted as follows:

1
2
3
4
[sqlshare]
host=rest.sqlshare.escience.washington.edu
user=your-sql-share-account-name@your-domain
password=your-sql-share-account-key

After creating a SQLShare account, the account-key may be created here https://sqlshare.escience.washington.edu/sqlshare/\#s=credentials.

Details

Package: sqlshare
Type: Package
Version: 1.0
Date: 2013-04-02
License: MIT

Author(s)

Andrew D White

References

Information on SQLShare may be found at http://escience.washington.edu/sqlshare

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
  

  #get the periodic table of elements
  sql <- "select * from [sqlshare@uw.edu].[periodic_table]"

  ## Not run: 

  #execute the sqlshare statement. Note, the extra session argument
  #isn't necessary if a config file is created
  elements <- fetch.data.frame(sql, session=guest.session)

  #plot the ionization potential as a function of atomic number
  plot(first_ionization_ev~z, elements, type="l")

  
## End(Not run)

whitead/sqlshare-r documentation built on Dec. 23, 2021, 5:13 p.m.