Skip to content

Commit

Permalink
Added sample JSON files
Browse files Browse the repository at this point in the history
  • Loading branch information
onecrayon committed Apr 24, 2010
1 parent 6a08720 commit 33039d1
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
30 changes: 30 additions & 0 deletions samples/example_data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
[
{
"table": "favorite_books",
"data": [
{
"rowID": 0,
"author": "F. Scott Fitzgerald",
"title": "The Great Gatsby"
},
{
"rowID": 1,
"author": "J.R.R. Tolkien",
"title": "The Lord of the Rings"
},
{
"rowID": 2,
"author": "Orson Scott Card",
"title": "Ender's Game"
}
]
},
{
"table": "awesome_video_games",
"data": [
{ "rowID": 0, "title": "Dark Forces" },
{ "rowID": 1, "title": "Earthworm Jim" },
{ "rowID": 2, "title": "Nethergate" }
]
}
]
31 changes: 31 additions & 0 deletions samples/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
[
{
"table": "favorite_books",
"columns": [
{
"column": "rowID",
"type": "INTEGER",
"constraints": ["PRIMARY KEY"]
},
{
"column": "author",
"type": "TEXT"
},
{
"column": "title",
"type": "TEXT"
}
]
},
{
"table": "awesome_video_games",
"columns": [
{
"column": "rowID",
"type": "INTEGER",
"constraints": ["PRIMARY KEY"]
},
{ "column": "title", "type": "TEXT" }
]
}
]

0 comments on commit 33039d1

Please sign in to comment.