Skip to content

Commit

Permalink
Cleanup of coffee code
Browse files Browse the repository at this point in the history
Use FS function instead of undocumented feature
  • Loading branch information
lovasoa committed Aug 28, 2014
1 parent c88b160 commit 31d5cc0
Show file tree
Hide file tree
Showing 3 changed files with 3,482 additions and 3,477 deletions.
7 changes: 4 additions & 3 deletions coffee/api.coffee
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#@copyright Ophir LOJKINE

apiTemp = Runtime.stackAlloc(4);
apiTemp = Runtime.stackAlloc(4)

# Constants are defined in api-data.coffee
SQLite = {};
SQLite = {}

### Represents an prepared statement.
Expand Down Expand Up @@ -374,7 +374,8 @@ class Database
### Exports the contents of the database to a binary array
@return [Uint8Array] An array of bytes of the SQLite3 database file
###
'export': -> new Uint8Array FS.root.contents[@filename].contents
'export': -> FS.readFile @filename, encoding:'binary'


### Close the database, and all associated prepared statements.
Expand Down
Loading

0 comments on commit 31d5cc0

Please sign in to comment.