GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Home
  • Releases
  • Documentation
  • Help & Support
  • Contributing
  • GitHub

This view

  • Original page
  • New address

GeezerVison is showing luakit.github.io — Luakit API Documentation

Table of Contents

Pages

  • Authors
  • Frequently Asked Questions
  • Quick-start Guide
  • Migration Guide
  • Files and Directories
  • Running the Test Suite
  • Building a Debian Package

Modules

  • adblock
  • adblock_chrome
  • binds
  • binds_chrome
  • bookmarks
  • bookmarks_chrome
  • chrome
  • clear_data
  • cmdhist
  • completion
  • domain_props
  • downloads
  • downloads_chrome
  • editor
  • error_page
  • follow
  • follow_selected
  • formfiller
  • go_input
  • go_next_prev
  • go_up
  • gopher
  • help_chrome
  • hide_scrollbars
  • history
  • history_chrome
  • image_css
  • introspector_chrome
  • ipc
  • keysym
  • log_chrome
  • lousy.bind
  • lousy.load
  • lousy.mode
  • lousy.pickle
  • lousy.signal
  • lousy.theme
  • lousy.uri
  • lousy.util
  • lousy.widget
  • lousy.widget.buf
  • lousy.widget.common
  • lousy.widget.hist
  • lousy.widget.menu
  • lousy.widget.progress
  • lousy.widget.scroll
  • lousy.widget.ssl
  • lousy.widget.tab
  • lousy.widget.tabi
  • lousy.widget.tablist
  • lousy.widget.tgname
  • lousy.widget.uri
  • lousy.widget.zoom
  • luakit
  • luakit.unique
  • modes
  • msg
  • newtab_chrome
  • noscript
  • open_editor
  • proxy
  • quickmarks
  • readline
  • referer_control_wm
  • search
  • select
  • select_wm
  • session
  • settings
  • settings_chrome
  • soup
  • styles
  • tab_favicons
  • tabgroups
  • tabhistory
  • tabmenu
  • taborder
  • tests.lib
  • undoclose
  • unique_instance
  • userscripts
  • utf8
  • vertical_tabs
  • view_source
  • viewpdf
  • webinspector
  • webview
  • window
  • xdg

Classes

  • dom_document
  • dom_element
  • download
  • page
  • regex
  • sqlite3
  • stylesheet
  • timer
  • widget
  • widget:box
  • widget:drawing_area
  • widget:entry
  • widget:event_box
  • widget:image
  • widget:label
  • widget:notebook
  • widget:overlay
  • widget:paned
  • widget:scrolled
  • widget:socket
  • widget:spinner
  • widget:webview
  • widget:window

Class sqlite3

Lightweight SQLite database interface
This module is only available from web process Lua states.

This module provides Lua access to SQLite databases. These are used for a number of purposes by the default modules, including storing user bookmarks, cookies, and browsing history.

Opening a database

To create a new sqlite3 instance and connect to a database, use the sqlite3 constructor:

local db = sqlite3{ filename = "path/to/database.db" }

Methods

sqlite3:exec (query, bindings)

Compile and execute the SQL query string query against the database. The sqlite3 instance must have been opened successfully.

Parameters

  • query
    Type: string
    A SQL query, comprised of one or more SQL statements.
  • bindings
    Type: table
    Optional
    Default: {}
    A table of values to bind to each SQL statement.

Return Values

  • table
    A table representing the query result.

sqlite3:close ()

Close a database and release related resources.

sqlite3:compile (statement)

Compile a SQL statement into a newly-created sqlite3::statement instance.

Parameters

  • statement
    Type: string
    A SQL statement.

Return Values

  • sqlite3::statement
    A newly-created instance representing a compiled statement.

sqlite3:changes ()

Get the number of rows that were added, removed, or changed by the most recently executed INSERT, UPDATE or DELETE statement.

Return Values

  • number
    The number of modified rows.

Properties

sqlite3.filename

Type: string
Read-only
The path to the database that the sqlite3 instance is connected to.

Attribution

Copyright

  • 2011 Mason Larobina
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.