File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,11 +152,19 @@ class Database {
152152 }
153153
154154 loadExtension ( ...args ) {
155- throw new Error ( "not implemented" ) ;
155+ try {
156+ this . db . loadExtension ( ...args ) ;
157+ } catch ( err ) {
158+ throw convertError ( err ) ;
159+ }
156160 }
157161
158162 maxWriteReplicationIndex ( ) {
159- throw new Error ( "not implemented" ) ;
163+ try {
164+ return this . db . maxWriteReplicationIndex ( ) ;
165+ } catch ( err ) {
166+ throw convertError ( err ) ;
167+ }
160168 }
161169
162170 /**
Original file line number Diff line number Diff line change @@ -156,7 +156,11 @@ class Database {
156156 }
157157
158158 loadExtension ( ...args ) {
159- throw new Error ( "not implemented" ) ;
159+ try {
160+ this . db . loadExtension ( ...args ) ;
161+ } catch ( err ) {
162+ throw convertError ( err ) ;
163+ }
160164 }
161165
162166 maxWriteReplicationIndex ( ) {
You can’t perform that action at this time.
0 commit comments