Skip to content

Fixes a typo in docs #178

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions coffee/api.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class Database
@example Insert values in a table
db.run("INSERT INTO test VALUES (:age, :name)", {':age':18, ':name':'John'});

@return [Database] The database object (usefull for method chaining)
@return [Database] The database object (useful for method chaining)
###
'run' : (sql, params) ->
if not @db then throw "Database closed"
Expand Down Expand Up @@ -353,7 +353,7 @@ class Database
@param callback [Function(Object)] A function that will be called on each row of result
@param done [Function] A function that will be called when all rows have been retrieved

@return [Database] The database object. Usefull for method chaining
@return [Database] The database object. Useful for method chaining

@example Read values from a table
db.each("SELECT name,age FROM users WHERE age >= $majority",
Expand Down Expand Up @@ -431,16 +431,16 @@ class Database
most recently completed INSERT, UPDATE or DELETE statement on the
database Executing any other type of SQL statement does not modify
the value returned by this function.

@return [Number] the number of rows modified
###
'getRowsModified': -> sqlite3_changes(@db)

### Register a custom function with SQLite
@example Register a simple function
db.create_function("addOne", function(x) {return x+1;})
db.exec("SELECT addOne(1)") // = 2

@param name [String] the name of the function as referenced in SQL statements.
@param func [Function] the actual function to be executed.
###
Expand Down
4 changes: 2 additions & 2 deletions js/sql-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -288111,7 +288111,7 @@ Database = (function() {
@example Insert values in a table
db.run("INSERT INTO test VALUES (:age, :name)", {':age':18, ':name':'John'});

@return [Database] The database object (usefull for method chaining)
@return [Database] The database object (useful for method chaining)
*/

Database.prototype['run'] = function(sql, params) {
Expand Down Expand Up @@ -288220,7 +288220,7 @@ Database = (function() {
@param callback [Function(Object)] A function that will be called on each row of result
@param done [Function] A function that will be called when all rows have been retrieved

@return [Database] The database object. Usefull for method chaining
@return [Database] The database object. Useful for method chaining

@example Read values from a table
db.each("SELECT name,age FROM users WHERE age >= $majority",
Expand Down