| Package | com.hippohx.sqlite |
| Class | public class Connection |
| Method | Defined by | ||
|---|---|---|---|
|
Connection(id:String)
Do NOT create a Connection instance directly, use SQLite.open() instead.
| Connection | ||
|
close():void
Closes the connection with the database.
| Connection | ||
|
dbName():String
Returns the name of the database this Connection is interacting with.
| Connection | ||
|
escape(s:String):String
Escapes the passed string.
| Connection | ||
|
lastInsertId():int
Returns an integer with the last inserted id on the database.
| Connection | ||
|
quote(s:String):String
Escapes the quotes of the passed string.
| Connection | ||
|
Runs a query on the database and returns a ResultSet object.
| Connection | ||
|
rollback():void
Rollsback the database to the state where startTransaction() was called.
| Connection | ||
|
startTransaction():void
Creates a rollback point.
| Connection | ||
| Connection | () | constructor |
public function Connection(id:String)Do NOT create a Connection instance directly, use SQLite.open() instead.
Parametersid:String — Unique identifier for the connection.
|
See also
| close | () | method |
public function close():voidCloses the connection with the database. If you need to interact with the same database again you have to get a new Connection object with SQL.open().
Neko call is neko.db.Connection.close().
See also
| dbName | () | method |
public function dbName():StringReturns the name of the database this Connection is interacting with.
Neko call is neko.db.Connection.dbName().
ReturnsString — A String with the name of the database this Connection is interacting with.
|
| escape | () | method |
public function escape(s:String):StringEscapes the passed string.
Neko call is neko.db.Connection.escape().
Parameterss:String |
String — The same String but escaped.
|
| lastInsertId | () | method |
public function lastInsertId():intReturns an integer with the last inserted id on the database.
Neko call is neko.db.Connection.lastInsertId().
Returnsint — An integer with the last inserted id on the database.
|
| quote | () | method |
public function quote(s:String):StringEscapes the quotes of the passed string. Use this as a security messure against SQL injections attacks.
Neko call is neko.db.Connection.quote().
Parameterss:String |
String — The same string but with escaped quotes.
|
| request | () | method |
public function request(query:String):ResultSetRuns a query on the database and returns a ResultSet object.
Neko call is neko.db.Connection.request().
Parametersquery:String — Query to be performed on the database.
|
ResultSet —
A ResultSet object with data related to your query.
|
See also
| rollback | () | method |
public function rollback():voidRollsback the database to the state where startTransaction() was called. See the Wikipedia for more info regarding rollbacks and transactions.
Neko call is neko.db.Connection.rollback().
See also
| startTransaction | () | method |
public function startTransaction():voidCreates a rollback point. See the Wikipedia for more info regarding rollbacks and transactions.
Neko call is neko.db.Connection.startTransaction().
See also