google-drive-0.4.1: Google Drive API access

Safe HaskellNone
LanguageHaskell2010

Network.Google.Drive.Search

Contents

Description

Synopsis

Documentation

listFiles :: Query -> Api [File] Source

Perform a search as specified by the Query

listVisibleContents :: File -> Api [File] Source

List all not-trashed files within the given folder

Building Queries

class QueryValue a where Source

Type class for values which can be used in queries

Methods

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

(?&&) :: Query -> Query -> Query infixr 3 Source

Return files that match both clauses

(?||) :: Query -> Query -> Query infixr 2 Source

Return files that match either clause

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

qOr :: Query -> Query -> Query infixr 2 Source

Deprecated: Use ?|| instead

Return files that match either clause

qNot :: Query -> Query Source

Negates a search clause