CurryInfo: cdbi-3.2.0 / Database.CDBI.Connection.getColumnNames

definition:
getColumnNames :: String -> DBAction [String]
-- SQLite implementation
getColumnNames table = DBAction $ \conn -> do
  writeConnection ("pragma table_info(" ++ table ++ ");") conn
  result <- parseLines conn
  case result of
    Left err -> return (Left err)
    Right xs -> return (Right (map retrieveColumnNames xs))
 where
  retrieveColumnNames xs = case xs of
    (_:y:_) -> y
    _       -> error "Database.CDBI.Connection.getColumnNames: wrong arguments"
demand:
no demanded arguments
deterministic:
deterministic operation
documentation:
--- Returns a list with the names of every column in a table
--- The parameter is the name of the table.
failfree:
<FAILING>
indeterministic:
referentially transparent operation
infix:
no fixity defined
iotype:
{(_) |-> _}
name:
getColumnNames
precedence:
no precedence defined
result-values:
_
signature:
String -> DBAction [String]
solution-complete:
operation might suspend on free variables
terminating:
possibly non-terminating
totally-defined:
possibly non-reducible on same data term