Maintainer | gtk2hs-users@lists.sourceforge.net |
---|---|
Stability | provisional |
Portability | portable (depends on GHC) |
Safe Haskell | None |
Language | Haskell98 |
Access to the WebKit Web Database
- data WebDatabase
- class GObjectClass o => WebDatabaseClass o
- webDatabaseGetDisplayName :: WebDatabaseClass self => self -> IO String
- webDatabaseGetExpectedSize :: WebDatabaseClass self => self -> IO Int
- webDatabaseGetFilename :: WebDatabaseClass self => self -> IO String
- webDatabaseGetName :: WebDatabaseClass self => self -> IO String
- webDatabaseGetSecurityOrigin :: WebDatabaseClass self => self -> IO SecurityOrigin
- webDatabaseGetSize :: WebDatabaseClass self => self -> IO Int
- webDatabaseRemove :: WebDatabaseClass self => self -> IO ()
Description
WebKitWebDatabase 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
securityOriginGetDatabases
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 WebKitWebDatabase
can be accessed wth webDatabaseGetFilename
You can configure the location of all
databases with setDatabaseDirectoryPath
.
For each database the web site can define an estimated size which can be accessed with
webDatabaseGetExpectedSize
The current size of the database in bytes is returned by
webDatabaseGetSize
.
For more information refer to the Web Database specification proposal at http:
Types
data WebDatabase Source
class GObjectClass o => WebDatabaseClass o Source
Methods
webDatabaseGetDisplayName :: WebDatabaseClass self => self -> IO String Source
Returns the name of the WebDatabase
as seen by the user.
webDatabaseGetExpectedSize :: WebDatabaseClass self => self -> IO Int Source
Returns the expected size of the Database 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.
webDatabaseGetFilename :: WebDatabaseClass self => self -> IO String Source
Returns the absolute filename to the WebKitWebDatabase file on disk.
webDatabaseGetName :: WebDatabaseClass self => self -> IO String Source
Returns the canonical name of the WebDatabase
.
webDatabaseGetSecurityOrigin :: WebDatabaseClass self => self -> IO SecurityOrigin Source
Returns the security origin of the WebKitWebDatabase.
webDatabaseGetSize :: WebDatabaseClass self => self -> IO Int Source
Returns the actual size of the WebDatabase
space on disk in bytes.
webDatabaseRemove :: WebDatabaseClass self => self -> IO () Source
Removes the WebDatabase
from its security origin and destroys all data stored in the database.