forked from pvanek/sqliteman
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Documentation for Find Dialog and a few bug fixes
- Loading branch information
1 parent
5b68e2d
commit 38cddc4
Showing
27 changed files
with
1,475 additions
and
747 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>User defined functions</title><link rel="stylesheet" href="kde-default.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.67.2"><meta name="keywords" content="Sqliteman, SQL, Sqlite, development, database"><link rel="start" href="index.html" title="The Sqliteman Handbook"><link rel="up" href="ch07.html" title="Chapter 7. Features and Dialogs"><link rel="prev" href="ch07.html" title="Chapter 7. Features and Dialogs"><link rel="next" href="ch07s01.html" title="User defined functions"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">User defined functions</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch07.html">Prev</a> </td><th width="60%" align="center">Chapter 7. Features and Dialogs</th><td width="20%" align="right"> <a accesskey="n" href="ch07s01.html">Next</a></td></tr></table><hr></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="User defined functions"></a>User defined functions</h2></div></div></div> | ||
<p>Sqliteman provides the following user-defined function in addition to the built-in functions supported by sqlite:-</p> | ||
<div class="variablelist"> | ||
<dl><dt><span class="term">exec (NAME, STATEMENT)</span></dt> | ||
<dd> | ||
<p>This function is called with two arguments which are both sql strings. NAME must be either NULL or a valid sql identifier which is not the name of an existing table or view. Otherwise the exec() function will fail with an appropriate error message. The exec() function can also fail if sqlite runs out of memory or encounters a similar fatal error.</p> | ||
<ul> | ||
<li>If NAME is NULL, exec() returns the first row of the first column of the table returned by executing STATEMENT as an sql statement. If executing STATEMENT fails or succeeds but does not generate a table, exec() returns NULL.</li> | ||
<li>If NAME is a valid sql identifier which is not the name of an existing table or view, the exec() function creates table NAME containing the result of attempting to execute STATEMENT as an sql statement, and exec() itself returns a null. In this case if STATEMENT succeeds but does not generate a table, exec() does not create a table and returns NULL, and if STATEMENT fails exec() does not create a table and returns the error message caused by the failure. Normally EXPLAIN, most PRAGMAs, SELECT, and VALUES statements generate tables if they succeed.</li> | ||
</ul> | ||
<p>exec() can be used in scripts to execute dynamically generated statements, check for errors, and examine results of PRAGMAs. The form with a NULL first argument can be used to extract a value from a table without causing the script to fail if the table does not exist.</p> | ||
<p>exec() is used by Sqliteman's internal tests. These are included in the source distribution and can be examined as examples for how to use it.</p> | ||
</dd> | ||
</dd></dl></div></div> | ||
<p>Sqliteman also provides two additonal collators LOCALIZED and LOCALIZED_CASE. These sort in Locale order. LOCALIZED is like the LOCALIZED collator provided by the Android implementation of sqlite (which is not case-sensitive), while the LOCALIZED_CASE collator is case-sensitive. Care should be taken when using these collators. It is always safe to use them in queries inside sqliteman itself. However if an object (such as a view) is created in the database referencing LOCALIZED or LOCALIZED_CASE, it will not be possible to access that object with an sqlite implementation which does not support that collator. | ||
<div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch07.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch07.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="ch07s01.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 7. Features and Dialogs </td><td width="20%" align="center"><a accesskey="h" href="index.html">Contents</a></td><td width="40%" align="right" valign="top"> Auto commit and Transaction Pending modes</td></tr></table></div></body></html> |
Oops, something went wrong.