Skip to content

Instantly share code, notes, and snippets.

@chanwit
Created October 21, 2010 17:56
Show Gist options
  • Save chanwit/638970 to your computer and use it in GitHub Desktop.
Save chanwit/638970 to your computer and use it in GitHub Desktop.
class SQLite {
private JavaScriptObject con;
private String name;
public SQLite(Strig name) {
this.name = name;
init();
}
public native JavaScriptObject execute(String stmt) /* --{
return [email protected]::con.execute(stmt);
}-- */;
public native void init() /* --{
[email protected]::con = new SQLite([email protected]::name);
}-- */;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment