Safe Haskell | None |
---|---|
Language | Haskell2010 |
Searching for files on your drive.
- listFiles :: Query -> Api [File]
- listVisibleContents :: File -> Api [File]
- type Query = Text
- data Field
- class QueryValue a where
- escapeValue :: a -> Text
- (?=) :: QueryValue a => Field -> a -> Query
- (?!=) :: QueryValue a => Field -> a -> Query
- (?<) :: QueryValue a => Field -> a -> Query
- (?<=) :: QueryValue a => Field -> a -> Query
- (?>) :: QueryValue a => Field -> a -> Query
- (?>=) :: QueryValue a => Field -> a -> Query
- (?&&) :: Query -> Query -> Query
- (?||) :: Query -> Query -> Query
- qIn :: QueryValue a => a -> Field -> Query
- qHas :: QueryValue a => Field -> a -> Query
- qContains :: QueryValue a => Field -> a -> Query
- qAnd :: Query -> Query -> Query
- qOr :: Query -> Query -> Query
- qNot :: Query -> Query
Documentation
listVisibleContents :: File -> Api [File] Source
List all not-trashed files within the given folder
Building Queries
Queriable fields
class QueryValue a where Source
Type class for values which can be used in queries
escapeValue :: a -> Text Source
(?=) :: QueryValue a => Field -> a -> Query Source
The content of a string or boolean is equal to the other
(?!=) :: QueryValue a => Field -> a -> Query Source
The content of a string or boolean is not equal to the other
(?<) :: QueryValue a => Field -> a -> Query Source
A date is earlier than another
(?<=) :: QueryValue a => Field -> a -> Query Source
A date is earlier than or equal to another
(?>) :: QueryValue a => Field -> a -> Query Source
A date is later than another
(?>=) :: QueryValue a => Field -> a -> Query Source
A date is later than or equal to another
qIn :: QueryValue a => a -> Field -> Query Source
An element is contained within a collection
Used for Parents
, Owners
, Writers
, and Readers
.
Note the reversed arguments such that infix usage makes sense.
qHas :: QueryValue a => Field -> a -> Query Source
A collection contains an element matching the parameters.
Used for Properties
.
qContains :: QueryValue a => Field -> a -> Query Source
The content of one string is present in the other
Used for Title
, FullText
, and MimeType
.
qAnd :: Query -> Query -> Query infixr 3 Source
Deprecated: Use ?&& instead
Return files that match both clauses