gi-webkit-3.0.11: WebKit bindings

CopyrightWill Thompson, Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.WebKit.Objects.WebDatabase

Contents

Description

WebDatabase is a representation of a Web Database database. The proposed Web Database standard introduces support for SQL databases that web sites can create and access on a local computer through JavaScript.

To get access to all databases defined by a security origin, use webkit_security_origin_get_databases. Each database has a canonical name, as well as a user-friendly display name.

WebKit uses SQLite to create and access the local SQL databases. The location of a WebDatabase can be accessed wth webkit_web_database_get_filename. You can configure the location of all databases with webkit_set_database_directory_path.

For each database the web site can define an estimated size which can be accessed with webkit_web_database_get_expected_size. The current size of the database in bytes is returned by webkit_web_database_get_size.

For more information refer to the Web Database specification proposal at http://dev.w3.org/html5/webdatabase

Synopsis

Exported types

Methods

getDisplayName

webDatabaseGetDisplayName Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebDatabase a) 
=> a

webDatabase: a WebDatabase

-> m Text

Returns: the name of the database as seen by the user.

Returns the name of the WebDatabase as seen by the user.

Since: 1.1.14

getExpectedSize

webDatabaseGetExpectedSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebDatabase a) 
=> a

webDatabase: a WebDatabase

-> m Word64

Returns: the expected size of the database in bytes

Returns the expected size of the WebDatabase in bytes as defined by the web author. The Web Database standard allows web authors to specify an expected size of the database to optimize the user experience.

Since: 1.1.14

getFilename

webDatabaseGetFilename Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebDatabase a) 
=> a

webDatabase: a WebDatabase

-> m Text

Returns: the absolute filename of the database

Returns the absolute filename to the WebDatabase file on disk.

Since: 1.1.14

getName

webDatabaseGetName Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebDatabase a) 
=> a

webDatabase: a WebDatabase

-> m Text

Returns: the name of the database

Returns the canonical name of the WebDatabase.

Since: 1.1.14

getSecurityOrigin

webDatabaseGetSecurityOrigin Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebDatabase a) 
=> a

webDatabase: a WebDatabase

-> m SecurityOrigin

Returns: the security origin of the database

Returns the security origin of the WebDatabase.

Since: 1.1.14

getSize

webDatabaseGetSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebDatabase a) 
=> a

webDatabase: a WebDatabase

-> m Word64

Returns: the actual size of the database in bytes

Returns the actual size of the WebDatabase space on disk in bytes.

Since: 1.1.14

remove

webDatabaseRemove Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebDatabase a) 
=> a

webDatabase: a WebDatabase

-> m () 

Removes the WebDatabase from its security origin and destroys all data stored in the database.

Since: 1.1.14

Properties

displayName

data WebDatabaseDisplayNamePropertyInfo Source #

Instances

AttrInfo WebDatabaseDisplayNamePropertyInfo Source # 
type AttrOrigin WebDatabaseDisplayNamePropertyInfo Source # 
type AttrLabel WebDatabaseDisplayNamePropertyInfo Source # 
type AttrGetType WebDatabaseDisplayNamePropertyInfo Source # 
type AttrBaseTypeConstraint WebDatabaseDisplayNamePropertyInfo Source # 
type AttrSetTypeConstraint WebDatabaseDisplayNamePropertyInfo Source # 
type AttrAllowedOps WebDatabaseDisplayNamePropertyInfo Source # 

expectedSize

data WebDatabaseExpectedSizePropertyInfo Source #

Instances

AttrInfo WebDatabaseExpectedSizePropertyInfo Source # 
type AttrOrigin WebDatabaseExpectedSizePropertyInfo Source # 
type AttrLabel WebDatabaseExpectedSizePropertyInfo Source # 
type AttrGetType WebDatabaseExpectedSizePropertyInfo Source # 
type AttrBaseTypeConstraint WebDatabaseExpectedSizePropertyInfo Source # 
type AttrSetTypeConstraint WebDatabaseExpectedSizePropertyInfo Source # 
type AttrAllowedOps WebDatabaseExpectedSizePropertyInfo Source # 

filename

data WebDatabaseFilenamePropertyInfo Source #

Instances

AttrInfo WebDatabaseFilenamePropertyInfo Source # 
type AttrOrigin WebDatabaseFilenamePropertyInfo Source # 
type AttrLabel WebDatabaseFilenamePropertyInfo Source # 
type AttrGetType WebDatabaseFilenamePropertyInfo Source # 
type AttrBaseTypeConstraint WebDatabaseFilenamePropertyInfo Source # 
type AttrSetTypeConstraint WebDatabaseFilenamePropertyInfo Source # 
type AttrAllowedOps WebDatabaseFilenamePropertyInfo Source # 

name

data WebDatabaseNamePropertyInfo Source #

Instances

AttrInfo WebDatabaseNamePropertyInfo Source # 
type AttrOrigin WebDatabaseNamePropertyInfo Source # 
type AttrLabel WebDatabaseNamePropertyInfo Source # 
type AttrGetType WebDatabaseNamePropertyInfo Source # 
type AttrBaseTypeConstraint WebDatabaseNamePropertyInfo Source # 
type AttrSetTypeConstraint WebDatabaseNamePropertyInfo Source # 
type AttrAllowedOps WebDatabaseNamePropertyInfo Source # 

securityOrigin

data WebDatabaseSecurityOriginPropertyInfo Source #

Instances

AttrInfo WebDatabaseSecurityOriginPropertyInfo Source # 
type AttrOrigin WebDatabaseSecurityOriginPropertyInfo Source # 
type AttrLabel WebDatabaseSecurityOriginPropertyInfo Source # 
type AttrGetType WebDatabaseSecurityOriginPropertyInfo Source # 
type AttrBaseTypeConstraint WebDatabaseSecurityOriginPropertyInfo Source # 
type AttrSetTypeConstraint WebDatabaseSecurityOriginPropertyInfo Source # 
type AttrAllowedOps WebDatabaseSecurityOriginPropertyInfo Source # 

size

data WebDatabaseSizePropertyInfo Source #

Instances

AttrInfo WebDatabaseSizePropertyInfo Source # 
type AttrOrigin WebDatabaseSizePropertyInfo Source # 
type AttrLabel WebDatabaseSizePropertyInfo Source # 
type AttrGetType WebDatabaseSizePropertyInfo Source # 
type AttrBaseTypeConstraint WebDatabaseSizePropertyInfo Source # 
type AttrSetTypeConstraint WebDatabaseSizePropertyInfo Source # 
type AttrAllowedOps WebDatabaseSizePropertyInfo Source #