@@ -68,7 +68,7 @@ In this mode, a table is created with just 2 columns, `key` and `value` as shown
6868``` python
6969import sqlite_blaster_python
7070
71- col_names = [ " key" , " value" ]
71+ col_names = " key, value"
7272sqib = sqlite_blaster_python.sqlite_index_blaster(2 , 1 , col_names, " imain" , 4096 , 40000 , " kv_idx.db" )
7373sqib.put_string(" hello" , " world" )
7474sqib.close()
@@ -95,7 +95,7 @@ To retrieve the inserted values, use `get` method as shown below
9595``` python
9696import sqlite_blaster_python
9797
98- col_names = [ " key" , " value" ]
98+ col_names = " key, value"
9999sqib = sqlite_blaster_python.sqlite_index_blaster(2 , 1 , col_names, " imain" , 4096 , 40 , " kv_idx.db" )
100100sqib.put_string(" hello" , " world" )
101101print (" Value of hello is" , sqib.get_string(" hello" , " not_found" ))
@@ -114,7 +114,7 @@ import sqlite_blaster_python
114114json1
= ' {"name": "Alice", "age": 25, "email": "[email protected] "}' 115115json2
= ' {"name": "George", "age": 32, "email": "[email protected] "}' 116116
117- col_names = [ " key" , " doc" ]
117+ col_names = " key, doc"
118118sqib = sqlite_blaster_python.sqlite_index_blaster(2 , 1 , col_names, " doc_index" , 4096 , 40 , " doc_store.db" )
119119sqib.put_string(" primary_contact" , json1)
120120sqib.put_string(" secondary_contact" , json2)
@@ -136,7 +136,7 @@ This repo can be used to create regular tables with primary key(s) as shown belo
136136``` python
137137import sqlite_blaster_python
138138
139- col_names = [ " student_name" , " age" , " maths_marks" , " physics_marks" , " chemistry_marks" , " average_marks" ]
139+ col_names = " student_name, age, maths_marks, physics_marks, chemistry_marks, average_marks"
140140sqib = sqlite_blaster_python.sqlite_index_blaster(6 , 2 , col_names, " student_marks" , 4096 , 40 , " student_marks.db" )
141141
142142sqib.put_rec([" Robert" , 19 , 80 , 69 , 98 , round ((80 + 69 + 98 )/ 3 , 2 )])
0 commit comments