NodeJS and SQLites i n g S Q L i t e d a t a b a s e s f r om a N od e . j s a p p l i c a t i on . T h e f u l l d oc u m e n t a t i on i s h e r e : S Q L i t e 3 A P I T h e l i b r a r y n e e d s t o b e i n s t a l l w h e n t h e d a t a b a s e i s op e n e d s u c c e s s f u l l y or w h e n a n e r r or oc u r r s . Ex a m p l e : C o n n e c t t o a S Q L i t e Da t a b a s e let sqlite3 = require('sqlite3'); callback ( op t i on a l ) : s i gn a t u r e ( e r r , r e s u l t ) c a l l e d w h e n a n e r r or oc c u r s ; i f e x e c u t i on w a s s u c c e s s f u l , t h e this ob j e c t c on t a i n s t h0 码力 | 8 页 | 109.88 KB | 1 年前3
共 1 条
- 1













