xernerx-database
TypeScript icon, indicating that this package has built-in type declarations

0.0.9 • Public • Published
��# x e r n e r x - d a t a b a s e A n e x t e n s i o n f o r t h e x e r n e r x f r a m e w o r k # # S e t u p ` ` ` j s t h i s . l o a d E x t e n s i o n s ( { e x t e n s i o n s : [ n e w X e r n e r x D a t a b a s e ( t h i s , { / / " t h i s " b e i n g t h e c l i e n t . b u i l d e r : ' . / b u i l d ' , / / P a t h t o w h e r e t o l o o k f o r t h e d a t a b a s e b u i l d e r s . } ) , ] , } ) ; ` ` ` # # B u i l d e r T h i s i s a v e r y e a r l y v e r s i o n s o I ' d r e c o m m e n d u s i n g e v e r y o p t i o n i n t h i s e x a m p l e . ` ` ` j s i m p o r t { D a t a b a s e B u i l d e r , S e q u e l i z e a s S } f r o m ' x e r n e r x - d a t a b a s e ' ; e x p o r t d e f a u l t c l a s s U s e r D a t a b a s e e x t e n d s D a t a b a s e B u i l d e r { c o n s t r u c t o r ( ) { s u p e r ( ' U s e r s ' , { n a m e : ' u s e r s ' , d a t a b a s e : ' d a t a b a s e ' , u s e r n a m e : ' u s e r n a m e ' , p a s s w o r d : ' p a s s w o r d ' , h o s t : ' l o c a l h o s t ' , l o g g i n g : f a l s e , s t o r a g e : ' d a t a / d a t a b a s e ' , } ) ; t h i s . s t r u c t u r e = { n a m e : { v a l u e : S . S T R I N G , u n i q u e : t r u e , } , n i c k n a m e : S . S T R I N G , } ; } } ` ` ` T h e b u i l d e r i s a l o t l i k e a c o m m a n d b u i l d e r .

/xernerx-database/

    Package Sidebar

    Install

    npm i xernerx-database

    Weekly Downloads

    0

    Version

    0.0.9

    License

    MIT

    Unpacked Size

    7.42 kB

    Total Files

    10

    Last publish

    Collaborators

    • dummi