Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(104)

Side by Side Diff: third_party/sqlite_google/src/sqlite.h.in

Issue 924: sqlite3 pragma get/set user_version implemented (Closed) SVN Base: http://google-gears.googlecode.com/svn/contrib/dimitri.glazkov/database2/gears/
Patch Set: Removed starting a transaction, just report SQLITE_MISUSE now. Created 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 ** 2001 September 15 2 ** 2001 September 15
3 ** 3 **
4 ** The author disclaims copyright to this source code. In place of 4 ** The author disclaims copyright to this source code. In place of
5 ** a legal notice, here is a blessing: 5 ** a legal notice, here is a blessing:
6 ** 6 **
7 ** May you do good and not evil. 7 ** May you do good and not evil.
8 ** May you find forgiveness for yourself and forgive others. 8 ** May you find forgiveness for yourself and forgive others.
9 ** May you share freely, never taking more than you give. 9 ** May you share freely, never taking more than you give.
10 ** 10 **
(...skipping 2647 matching lines...) Show 10 above Show 10 below
2658 ** not possible to increase the size of a blob using this API. If 2658 ** not possible to increase the size of a blob using this API. If
2659 ** offset iOffset is less than n bytes from the end of the blob, 2659 ** offset iOffset is less than n bytes from the end of the blob,
2660 ** [SQLITE_ERROR] is returned and no data is written. 2660 ** [SQLITE_ERROR] is returned and no data is written.
2661 ** 2661 **
2662 ** On success, SQLITE_OK is returned. Otherwise, an 2662 ** On success, SQLITE_OK is returned. Otherwise, an
2663 ** [SQLITE_ERROR | SQLite error code] or an 2663 ** [SQLITE_ERROR | SQLite error code] or an
2664 ** [SQLITE_IOERR_READ | extended error code] is returned. 2664 ** [SQLITE_IOERR_READ | extended error code] is returned.
2665 */ 2665 */
2666 int sqlite3_blob_write(sqlite3_blob *, const void *z, int n, int iOffset); 2666 int sqlite3_blob_write(sqlite3_blob *, const void *z, int n, int iOffset);
2667 2667
2668 #if !defined(SQLITE_OMIT_PRAGMA) && !defined(SQLITE_OMIT_PARSER)
2669
2670 /* 2668 /*
2671 ** CAPI3REF: Read User Version Value 2669 ** Gears-specific: Read User Version Value
2672 ** 2670 **
2673 ** This function reads the user version cookie and sets the value of 2671 ** This function reads the user version cookie and sets the value of
2674 ** user_version to it. 2672 ** user_version to it.
2675 ** 2673 **
2676 ** Returns SQLITE_OK on success. Otherwise, an error code is returned 2674 ** Returns SQLITE_OK on success. Otherwise, an error code is returned
2677 */ 2675 */
2678 int sqlite3_pragma_get_user_version(sqlite3*, int *user_version); 2676 int sqlite3_get_user_version(sqlite3*, int *user_version);
2679 2677
2680 /* 2678 /*
2681 ** CAPI3REF: Write User Version Value 2679 ** Gears-specific: Write User Version Value
2682 ** 2680 **
2683 ** This function writes the user version cookie. 2681 ** This function writes the user version cookie.
2684 ** 2682 **
2685 ** returns SQLITE_OK on success. Otherwise, an error code is returned 2683 ** returns SQLITE_OK on success. Otherwise, an error code is returned
2686 */ 2684 */
2687 int sqlite3_pragma_set_user_version(sqlite3*, int user_version); 2685 int sqlite3_set_user_version(sqlite3*, int user_version);
2688
2689 #endif /* SQLITE_OMIT_PRAGMA || SQLITE_OMIT_PARSER */
2690 2686
2691 /* 2687 /*
2692 ** Undo the hack that converts floating point types to integer for 2688 ** Undo the hack that converts floating point types to integer for
2693 ** builds on processors without floating point support. 2689 ** builds on processors without floating point support.
2694 */ 2690 */
2695 #ifdef SQLITE_OMIT_FLOATING_POINT 2691 #ifdef SQLITE_OMIT_FLOATING_POINT
2696 # undef double 2692 # undef double
2697 #endif 2693 #endif
2698 2694
2699 #ifdef __cplusplus 2695 #ifdef __cplusplus
2700 } /* End of the 'extern "C"' block */ 2696 } /* End of the 'extern "C"' block */
2701 #endif 2697 #endif
2702 #endif 2698 #endif
OLDNEW

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld r338