add indexes to the results - so that you can find them by sampleID
This commit is contained in:
parent
5d2a40119a
commit
d06e8a4893
12
index.html
12
index.html
|
|
@ -27,13 +27,23 @@
|
|||
</body>
|
||||
<script>
|
||||
var db;
|
||||
let openRequest = indexedDB.open("my_db");
|
||||
let openRequest = indexedDB.open("my_db",8);
|
||||
|
||||
openRequest.onupgradeneeded = function() {
|
||||
db = openRequest.result;
|
||||
db.createObjectStore("microscope_setup", {autoIncrement : true});
|
||||
db.createObjectStore("prep_protocol", {autoIncrement : true});
|
||||
db.createObjectStore("defaults", { keyPath: "id" });
|
||||
db.createObjectStore("sample", {autoIncrement : true});
|
||||
let nema_scan = db.createObjectStore("nematode_scan", {autoIncrement : true});
|
||||
let main_scan = db.createObjectStore("main_scan", {autoIncrement : true});
|
||||
let bact_scan = db.createObjectStore("bacterial_scan", {autoIncrement : true});
|
||||
main_scan.createIndex("sampleID", "sampleID");
|
||||
nema_scan.createIndex("sampleID", "sampleID");
|
||||
bact_scan.createIndex("sampleID", "sampleID");
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue