packages feed

bindings-sqlite3 0.0.1 → 0.0.2

raw patch · 2 files changed

+189/−95 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

bindings-sqlite3.cabal view
@@ -3,7 +3,7 @@ homepage: http://bitbucket.org/mauricio/bindings synopsis:   Check bindings-common package for directions.-version: 0.0.1+version: 0.0.2 license: BSD3 license-file: LICENSE maintainer: Maurício C. Antunes
src/Bindings/Sqlite3.hs view
@@ -1,35 +1,41 @@ module Bindings.Sqlite3 (      -- * Run-Time Library Version Numbers-    -- <http://sqlite.org/c3ref/libversion.html> +    -- | <http://sqlite.org/c3ref/libversion.html>+     sqlite3_version,     sqlite3_libversion,     sqlite3_libversion_number,      -- * Test To See If The Library Is Threadsafe-    -- <http://sqlite.org/c3ref/threadsafe.html> +    -- | <http://sqlite.org/c3ref/threadsafe.html>+     sqlite3_threadsafe,      -- * Database Connection Handle-    -- <http://sqlite.org/c3ref/sqlite3.html> +    -- | <http://sqlite.org/c3ref/sqlite3.html>+     Sqlite3,      -- * Closing A Database Connection-    -- <http://sqlite.org/c3ref/close.html> +    -- | <http://sqlite.org/c3ref/close.html>+     sqlite3_close,      -- * One-Step Query Execution Interface-    -- <http://sqlite.org/c3ref/exec.html> +    -- | <http://sqlite.org/c3ref/exec.html>+     sqlite3_exec,      -- * Result Codes-    -- <http://sqlite.org/c3ref/c_abort.html> +    -- | <http://sqlite.org/c3ref/c_abort.html>+     _SQLITE_OK,     _SQLITE_ERROR,     _SQLITE_INTERNAL,@@ -61,8 +67,9 @@     _SQLITE_DONE,      -- * Extended Result Codes-    -- <http://sqlite.org/c3ref/c_ioerr_access.html> +    -- | <http://sqlite.org/c3ref/c_ioerr_access.html>+     _SQLITE_IOERR_READ,     _SQLITE_IOERR_SHORT_READ,     _SQLITE_IOERR_WRITE,@@ -82,8 +89,9 @@     _SQLITE_IOERR_DIR_CLOSE,      -- * Flags For File Open Operations-    -- <http://sqlite.org/c3ref/c_open_create.html> +    -- | <http://sqlite.org/c3ref/c_open_create.html>+     _SQLITE_OPEN_READONLY,     _SQLITE_OPEN_READWRITE,     _SQLITE_OPEN_CREATE,@@ -100,8 +108,9 @@     _SQLITE_OPEN_FULLMUTEX,      -- * Device Characteristics-    -- <http://sqlite.org/c3ref/c_iocap_atomic.html> +    -- | <http://sqlite.org/c3ref/c_iocap_atomic.html>+     _SQLITE_IOCAP_ATOMIC,     _SQLITE_IOCAP_ATOMIC512,     _SQLITE_IOCAP_ATOMIC1K,@@ -115,8 +124,9 @@     _SQLITE_IOCAP_SEQUENTIAL,      -- * File Locking Levels-    -- <http://sqlite.org/c3ref/c_lock_exclusive.html> +    -- | <http://sqlite.org/c3ref/c_lock_exclusive.html>+     _SQLITE_LOCK_NONE,     _SQLITE_LOCK_SHARED,     _SQLITE_LOCK_RESERVED,@@ -124,134 +134,157 @@     _SQLITE_LOCK_EXCLUSIVE,      -- * Synchronization Type Flags-    -- <http://sqlite.org/c3ref/c_sync_dataonly.html> +    -- | <http://sqlite.org/c3ref/c_sync_dataonly.html>+     _SQLITE_SYNC_NORMAL,     _SQLITE_SYNC_FULL,     _SQLITE_SYNC_DATAONLY,      -- * OS Interface Open File Handle-    -- <http://sqlite.org/c3ref/file.html> +    -- | <http://sqlite.org/c3ref/file.html>+     Sqlite3_file,      -- * OS Interface File Virtual Methods Object-    -- <http://sqlite.org/c3ref/io_methods.html> +    -- | <http://sqlite.org/c3ref/io_methods.html>+     Sqlite3_io_methods,      -- * Standard File Control Opcodes-    -- <http://sqlite.org/c3ref/c_fcntl_lockstate.html> +    -- | <http://sqlite.org/c3ref/c_fcntl_lockstate.html>+     _SQLITE_FCNTL_LOCKSTATE,     _SQLITE_GET_LOCKPROXYFILE,     _SQLITE_SET_LOCKPROXYFILE,     _SQLITE_LAST_ERRNO,      -- * Mutex Handle-    -- <http://sqlite.org/c3ref/mutex.html> +    -- | <http://sqlite.org/c3ref/mutex.html>+     Sqlite3_mutex,      -- * OS Interface Object-    -- <http://sqlite.org/c3ref/vfs.html> +    -- | <http://sqlite.org/c3ref/vfs.html>+     Sqlite3_vfs,      -- * Flags for the xAccess VFS method-    -- <http://sqlite.org/c3ref/c_access_exists.html> +    -- | <http://sqlite.org/c3ref/c_access_exists.html>+     _SQLITE_ACCESS_EXISTS,     _SQLITE_ACCESS_READWRITE,     _SQLITE_ACCESS_READ,      -- * Initialize The SQLite Library-    -- <http://sqlite.org/c3ref/initialize.html> +    -- | <http://sqlite.org/c3ref/initialize.html>+     sqlite3_initialize,     sqlite3_shutdown,     sqlite3_os_init,     sqlite3_os_end,      -- * Enable Or Disable Extended Result Codes-    -- <http://sqlite.org/c3ref/extended_result_codes.html> +    -- | <http://sqlite.org/c3ref/extended_result_codes.html>+     sqlite3_extended_result_codes,      -- * Last Insert Rowid-    -- <http://sqlite.org/c3ref/last_insert_rowid.html> +    -- | <http://sqlite.org/c3ref/last_insert_rowid.html>+     sqlite3_last_insert_rowid,      -- * Count The Number Of Rows Modified-    -- <http://sqlite.org/c3ref/changes.html> +    -- | <http://sqlite.org/c3ref/changes.html>+     sqlite3_changes,      -- * Total Number Of Rows Modified-    -- <http://sqlite.org/c3ref/total_changes.html> +    -- | <http://sqlite.org/c3ref/total_changes.html>+     sqlite3_total_changes,      -- * Interrupt A Long-Running Query-    -- <http://sqlite.org/c3ref/interrupt.html> +    -- | <http://sqlite.org/c3ref/interrupt.html>+     sqlite3_interrupt,      -- * Determine If An SQL Statement Is Complete-    -- <http://sqlite.org/c3ref/complete.html> +    -- | <http://sqlite.org/c3ref/complete.html>+     sqlite3_complete,     sqlite3_complete16,      -- * Register A Callback To Handle SQLITE_BUSY Errors-    -- <http://sqlite.org/c3ref/busy_handler.html> +    -- | <http://sqlite.org/c3ref/busy_handler.html>+     sqlite3_busy_handler,      -- * Set A Busy Timeout-    -- <http://sqlite.org/c3ref/busy_timeout.html> +    -- | <http://sqlite.org/c3ref/busy_timeout.html>+     sqlite3_busy_timeout,      -- * Convenience Routines For Running Queries-    -- <http://sqlite.org/c3ref/free_table.html> +    -- | <http://sqlite.org/c3ref/free_table.html>+     sqlite3_get_table,     sqlite3_free_table,      -- * Memory Allocation Subsystem-    -- <http://sqlite.org/c3ref/free.html> +    -- | <http://sqlite.org/c3ref/free.html>+     sqlite3_malloc,     sqlite3_realloc,     sqlite3_free,      -- * Memory Allocator Statistics-    -- <http://sqlite.org/c3ref/memory_highwater.html> +    -- | <http://sqlite.org/c3ref/memory_highwater.html>+     sqlite3_memory_used,     sqlite3_memory_highwater,      -- * Pseudo-Random Number Generator-    -- <http://sqlite.org/c3ref/randomness.html> +    -- | <http://sqlite.org/c3ref/randomness.html>+     sqlite3_randomness,      -- * Compile-Time Authorization Callbacks-    -- <http://sqlite.org/c3ref/set_authorizer.html> +    -- | <http://sqlite.org/c3ref/set_authorizer.html>+     sqlite3_set_authorizer,      -- * Authorizer Return Codes-    -- <http://sqlite.org/c3ref/c_deny.html> +    -- | <http://sqlite.org/c3ref/c_deny.html>+     _SQLITE_DENY,     _SQLITE_IGNORE,      -- * Authorizer Action Codes-    -- <http://sqlite.org/c3ref/c_alter_table.html> +    -- | <http://sqlite.org/c3ref/c_alter_table.html>+     _SQLITE_CREATE_INDEX,     _SQLITE_CREATE_TABLE,     _SQLITE_CREATE_TEMP_INDEX,@@ -287,38 +320,44 @@     _SQLITE_COPY,      -- * Query Progress Callbacks-    -- <http://sqlite.org/c3ref/progress_handler.html> +    -- | <http://sqlite.org/c3ref/progress_handler.html>+     sqlite3_progress_handler,      -- * Opening A New Database Connection-    -- <http://sqlite.org/c3ref/open.html> +    -- | <http://sqlite.org/c3ref/open.html>+     sqlite3_open,     sqlite3_open16,     sqlite3_open_v2,      -- * Error Codes And Messages-    -- <http://sqlite.org/c3ref/errcode.html> +    -- | <http://sqlite.org/c3ref/errcode.html>+     sqlite3_errcode,     sqlite3_extended_errcode,     sqlite3_errmsg,     sqlite3_errmsg16,      -- * SQL Statement Object-    -- <http://sqlite.org/c3ref/stmt.html> +    -- | <http://sqlite.org/c3ref/stmt.html>+     Sqlite3_stmt,      -- * Run-time Limits-    -- <http://sqlite.org/c3ref/limit.html> +    -- | <http://sqlite.org/c3ref/limit.html>+     sqlite3_limit,      -- * Run-Time Limit Categories-    -- <http://sqlite.org/c3ref/c_limit_attached.html> +    -- | <http://sqlite.org/c3ref/c_limit_attached.html>+     _SQLITE_LIMIT_LENGTH,     _SQLITE_LIMIT_SQL_LENGTH,     _SQLITE_LIMIT_COLUMN,@@ -331,31 +370,36 @@     _SQLITE_LIMIT_VARIABLE_NUMBER,      -- * Compiling An SQL Statement-    -- <http://sqlite.org/c3ref/prepare.html> +    -- | <http://sqlite.org/c3ref/prepare.html>+     sqlite3_prepare,     sqlite3_prepare_v2,     sqlite3_prepare16,     sqlite3_prepare16_v2,      -- * Retrieving Statement SQL-    -- <http://sqlite.org/c3ref/sql.html> +    -- | <http://sqlite.org/c3ref/sql.html>+     sqlite3_sql,      -- * Dynamically Typed Value Object-    -- <http://sqlite.org/c3ref/value.html> +    -- | <http://sqlite.org/c3ref/value.html>+     Sqlite3_value,      -- * SQL Function Context Object-    -- <http://sqlite.org/c3ref/context.html> +    -- | <http://sqlite.org/c3ref/context.html>+     Sqlite3_context,      -- * Binding Values To Prepared Statements-    -- <http://sqlite.org/c3ref/bind_blob.html> +    -- | <http://sqlite.org/c3ref/bind_blob.html>+     sqlite3_bind_blob,     sqlite3_bind_double,     sqlite3_bind_int,@@ -367,39 +411,46 @@     sqlite3_bind_zeroblob,      -- * Number Of SQL Parameters-    -- <http://sqlite.org/c3ref/bind_parameter_count.html> +    -- | <http://sqlite.org/c3ref/bind_parameter_count.html>+     sqlite3_bind_parameter_count,      -- * Name Of A Host Parameter-    -- <http://sqlite.org/c3ref/bind_parameter_name.html> +    -- | <http://sqlite.org/c3ref/bind_parameter_name.html>+     sqlite3_bind_parameter_name,      -- * Index Of A Parameter With A Given Name-    -- <http://sqlite.org/c3ref/bind_parameter_index.html> +    -- | <http://sqlite.org/c3ref/bind_parameter_index.html>+     sqlite3_bind_parameter_index,      -- * Reset All Bindings On A Prepared Statement-    -- <http://sqlite.org/c3ref/clear_bindings.html> +    -- | <http://sqlite.org/c3ref/clear_bindings.html>+     sqlite3_clear_bindings,      -- * Number Of Columns In A Result Set-    -- <http://sqlite.org/c3ref/column_count.html> +    -- | <http://sqlite.org/c3ref/column_count.html>+     sqlite3_column_count,      -- * Column Names In A Result Set-    -- <http://sqlite.org/c3ref/column_name.html> +    -- | <http://sqlite.org/c3ref/column_name.html>+     sqlite3_column_name,     sqlite3_column_name16,      -- * Source Of Data In A Query Result-    -- <http://sqlite.org/c3ref/column_database_name.html> +    -- | <http://sqlite.org/c3ref/column_database_name.html>+     sqlite3_column_database_name,     sqlite3_column_database_name16,     sqlite3_column_table_name,@@ -408,24 +459,28 @@     sqlite3_column_origin_name16,      -- * Declared Datatype Of A Query Result-    -- <http://sqlite.org/c3ref/column_decltype.html> +    -- | <http://sqlite.org/c3ref/column_decltype.html>+     sqlite3_column_decltype,     sqlite3_column_decltype16,      -- * Evaluate An SQL Statement-    -- <http://sqlite.org/c3ref/step.html> +    -- | <http://sqlite.org/c3ref/step.html>+     sqlite3_step,      -- * Number of columns in a result set-    -- <http://sqlite.org/c3ref/data_count.html> +    -- | <http://sqlite.org/c3ref/data_count.html>+     sqlite3_data_count,      -- * Fundamental Datatypes-    -- <http://sqlite.org/c3ref/c_blob.html> +    -- | <http://sqlite.org/c3ref/c_blob.html>+     _SQLITE_INTEGER,     _SQLITE_FLOAT,     _SQLITE_BLOB,@@ -433,8 +488,9 @@     _SQLITE3_TEXT,      -- * Result Values From A Query-    -- <http://sqlite.org/c3ref/column_blob.html> +    -- | <http://sqlite.org/c3ref/column_blob.html>+     sqlite3_column_blob,     sqlite3_column_bytes,     sqlite3_column_bytes16,@@ -447,19 +503,22 @@     sqlite3_column_value,      -- * Destroy A Prepared Statement Object-    -- <http://sqlite.org/c3ref/finalize.html> +    -- | <http://sqlite.org/c3ref/finalize.html>+     sqlite3_finalize,      -- * Reset A Prepared Statement Object-    -- <http://sqlite.org/c3ref/create_function.html> +    -- | <http://sqlite.org/c3ref/create_function.html>+     sqlite3_create_function,     sqlite3_create_function16,      -- * Text Encodings-    -- <http://sqlite.org/c3ref/c_any.html> +    -- | <http://sqlite.org/c3ref/c_any.html>+     _SQLITE_UTF8,     _SQLITE_UTF16LE,     _SQLITE_UTF16BE,@@ -468,8 +527,9 @@     _SQLITE_UTF16_ALIGNED,      -- * Obtaining SQL Function Parameter Values-    -- <http://sqlite.org/c3ref/value_blob.html> +    -- | <http://sqlite.org/c3ref/value_blob.html>+     sqlite3_value_blob,     sqlite3_value_bytes,     sqlite3_value_bytes16,@@ -484,36 +544,42 @@     sqlite3_value_numeric_type,      -- * Obtain Aggregate Function Context-    -- <http://sqlite.org/c3ref/aggregate_context.html> +    -- | <http://sqlite.org/c3ref/aggregate_context.html>+     sqlite3_aggregate_context,      -- * User Data For Functions-    -- <http://sqlite.org/c3ref/user_data.html> +    -- | <http://sqlite.org/c3ref/user_data.html>+     sqlite3_user_data,      -- * Database Connection For Functions-    -- <http://sqlite.org/c3ref/context_db_handle.html> +    -- | <http://sqlite.org/c3ref/context_db_handle.html>+     sqlite3_context_db_handle,      -- * Function Auxiliary Data-    -- <http://sqlite.org/c3ref/get_auxdata.html> +    -- | <http://sqlite.org/c3ref/get_auxdata.html>+     sqlite3_get_auxdata,     sqlite3_set_auxdata,      -- * Constants Defining Special Destructor Behavior-    -- <http://sqlite.org/c3ref/c_static.html> +    -- | <http://sqlite.org/c3ref/c_static.html>+     Sqlite3_destructor_type,     _SQLITE_STATIC,     _SQLITE_TRANSIENT,      -- * Setting The Result Of An SQL Function-    -- <http://sqlite.org/c3ref/result_blob.html> +    -- | <http://sqlite.org/c3ref/result_blob.html>+     sqlite3_result_blob,     sqlite3_result_double,     sqlite3_result_error,@@ -532,129 +598,153 @@     sqlite3_result_zeroblob,      -- * Define New Collating Sequences-    -- <http://sqlite.org/c3ref/create_collation.html> +    -- | <http://sqlite.org/c3ref/create_collation.html>+     sqlite3_create_collation,     sqlite3_create_collation_v2,     sqlite3_create_collation16,      -- * Collation Needed Callbacks-    -- <http://sqlite.org/c3ref/collation_needed.html> +    -- | <http://sqlite.org/c3ref/collation_needed.html>+     sqlite3_collation_needed,     sqlite3_collation_needed16,      -- * Suspend Execution For A Short Time-    -- <http://sqlite.org/c3ref/sleep.html> +    -- | <http://sqlite.org/c3ref/sleep.html>+     sqlite3_sleep,      -- * Name Of The Folder Holding Temporary Files-    -- <http://sqlite.org/c3ref/temp_directory.html> +    -- | <http://sqlite.org/c3ref/temp_directory.html>+     sqlite_temp_directory,      -- * Test For Auto-Commit Mode-    -- <http://sqlite.org/c3ref/get_autocommit.html> +    -- | <http://sqlite.org/c3ref/get_autocommit.html>+     sqlite3_get_autocommit,      -- * Find The Database Handle Of A Prepared Statement-    -- <http://sqlite.org/c3ref/db_handle.html> +    -- | <http://sqlite.org/c3ref/db_handle.html>+     sqlite3_db_handle,      -- * Find the next prepared statement-    -- <http://sqlite.org/c3ref/next_stmt.html> +    -- | <http://sqlite.org/c3ref/next_stmt.html>+     sqlite3_next_stmt,      -- * Commit And Rollback Notification Callbacks-    -- <http://sqlite.org/c3ref/commit_hook.html> +    -- | <http://sqlite.org/c3ref/commit_hook.html>+     sqlite3_commit_hook,     sqlite3_rollback_hook,      -- * Data Change Notification Callbacks-    -- <http://sqlite.org/c3ref/update_hook.html> +    -- | <http://sqlite.org/c3ref/update_hook.html>+     sqlite3_update_hook,      -- * Enable Or Disable Shared Pager Cache-    -- <http://sqlite.org/c3ref/enable_shared_cache.html> +    -- | <http://sqlite.org/c3ref/enable_shared_cache.html>+     sqlite3_enable_shared_cache,      -- * Attempt To Free Heap Memory-    -- <http://sqlite.org/c3ref/release_memory.html> +    -- | <http://sqlite.org/c3ref/release_memory.html>+     sqlite3_release_memory,      -- * Impose A Limit On Heap Size-    -- <http://sqlite.org/c3ref/soft_heap_limit.html> +    -- | <http://sqlite.org/c3ref/soft_heap_limit.html>+     sqlite3_soft_heap_limit,      -- * Load An Extension-    -- <http://sqlite.org/c3ref/load_extension.html> +    -- | <http://sqlite.org/c3ref/load_extension.html>+     sqlite3_load_extension,      -- * Enable Or Disable Extension Loading-    -- <http://sqlite.org/c3ref/enable_load_extension.html> +    -- | <http://sqlite.org/c3ref/enable_load_extension.html>+     sqlite3_enable_load_extension,      -- * Automatically Load An Extensions-    -- <http://sqlite.org/c3ref/auto_extension.html> +    -- | <http://sqlite.org/c3ref/auto_extension.html>+     sqlite3_auto_extension,      -- * Reset Automatic Extension Loading-    -- <http://sqlite.org/c3ref/reset_auto_extension.html> +    -- | <http://sqlite.org/c3ref/reset_auto_extension.html>+     sqlite3_reset_auto_extension,      -- * A Handle To An Open BLOB-    -- <http://sqlite.org/c3ref/blob.html> +    -- | <http://sqlite.org/c3ref/blob.html>+     Sqlite3_blob,      -- * Open A BLOB For Incremental I/O-    -- <http://sqlite.org/c3ref/blob_open.html> +    -- | <http://sqlite.org/c3ref/blob_open.html>+     sqlite3_blob_open,      -- * Close A BLOB Handle-    -- <http://sqlite.org/c3ref/blob_close.html> +    -- | <http://sqlite.org/c3ref/blob_close.html>+     sqlite3_blob_close,      -- * Return The Size Of An Open BLOB-    -- <http://sqlite.org/c3ref/blob_bytes.html> +    -- | <http://sqlite.org/c3ref/blob_bytes.html>+     sqlite3_blob_bytes,      -- * Read Data From A BLOB Incrementally-    -- <http://sqlite.org/c3ref/blob_read.html> +    -- | <http://sqlite.org/c3ref/blob_read.html>+     sqlite3_blob_read,      -- * Write Data Into A BLOB Incrementally-    -- <http://sqlite.org/c3ref/blob_write.html> +    -- | <http://sqlite.org/c3ref/blob_write.html>+     sqlite3_blob_write,      -- * Virtual File System Objects-    -- <http://sqlite.org/c3ref/vfs_find.html> +    -- | <http://sqlite.org/c3ref/vfs_find.html>+     sqlite3_vfs_find,     sqlite3_vfs_register,     sqlite3_vfs_unregister,      -- * Mutexes-    -- <http://sqlite.org/c3ref/mutex_alloc.html> +    -- | <http://sqlite.org/c3ref/mutex_alloc.html>+     sqlite3_mutex_alloc,     sqlite3_mutex_free,     sqlite3_mutex_enter,@@ -662,14 +752,16 @@     sqlite3_mutex_leave,      -- * Mutex Verification Routines-    -- <http://sqlite.org/c3ref/mutex_held.html> +    -- | <http://sqlite.org/c3ref/mutex_held.html>+     sqlite3_mutex_held,     sqlite3_mutex_notheld,      -- * Mutex Types-    -- <http://sqlite.org/c3ref/c_mutex_fast.html> +    -- | <http://sqlite.org/c3ref/c_mutex_fast.html>+     _SQLITE_MUTEX_FAST,     _SQLITE_MUTEX_RECURSIVE,     _SQLITE_MUTEX_STATIC_MASTER,@@ -680,12 +772,14 @@     _SQLITE_MUTEX_STATIC_LRU2,      -- * Retrieve the mutex for a database connection-    -- <http://sqlite.org/c3ref/db_mutex.html> +    -- | <http://sqlite.org/c3ref/db_mutex.html>+     sqlite3_db_mutex,      -- * Low-Level Control Of Database Files-    -- <http://sqlite.org/c3ref/file_control.html>++    -- | <http://sqlite.org/c3ref/file_control.html>      sqlite3_file_control