Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Executes a Fusion Tables SQL statement, which can be any of - SELECT - INSERT - UPDATE - DELETE - SHOW - DESCRIBE - CREATE statement.
See: Fusion Tables API Reference for fusiontables.query.sql
.
Synopsis
- type QuerySQLResource = ("fusiontables" :> ("v2" :> ("query" :> (QueryParam "sql" Text :> (QueryParam "typed" Bool :> (QueryParam "hdrs" Bool :> (QueryParam "alt" AltJSON :> Post '[JSON] SQLresponse))))))) :<|> ("fusiontables" :> ("v2" :> ("query" :> (QueryParam "sql" Text :> (QueryParam "typed" Bool :> (QueryParam "hdrs" Bool :> (QueryParam "alt" AltMedia :> Post '[OctetStream] Stream)))))))
- querySQL :: Text -> QuerySQL
- data QuerySQL
- qsqlTyped :: Lens' QuerySQL (Maybe Bool)
- qsqlHdrs :: Lens' QuerySQL (Maybe Bool)
- qsqlSQL :: Lens' QuerySQL Text
REST Resource
type QuerySQLResource = ("fusiontables" :> ("v2" :> ("query" :> (QueryParam "sql" Text :> (QueryParam "typed" Bool :> (QueryParam "hdrs" Bool :> (QueryParam "alt" AltJSON :> Post '[JSON] SQLresponse))))))) :<|> ("fusiontables" :> ("v2" :> ("query" :> (QueryParam "sql" Text :> (QueryParam "typed" Bool :> (QueryParam "hdrs" Bool :> (QueryParam "alt" AltMedia :> Post '[OctetStream] Stream))))))) Source #
A resource alias for fusiontables.query.sql
method which the
QuerySQL
request conforms to.
Creating a Request
Executes a Fusion Tables SQL statement, which can be any of - SELECT - INSERT - UPDATE - DELETE - SHOW - DESCRIBE - CREATE statement.
See: querySQL
smart constructor.
Instances
Request Lenses
qsqlTyped :: Lens' QuerySQL (Maybe Bool) Source #
Whether typed values are returned in the (JSON) response: numbers for numeric values and parsed geometries for KML values. Default is true.