@@ -55,51 +55,34 @@ declare module "util/string" {
5555 export function deleteStr ( options : DeleteOptions ) : any ;
5656}
5757declare module "lib/queries" {
58- const _exports : {
59- sync : typeof sync ;
60- /**
61- * Asynchronous delete query. Optional overload, since 'delete' is reserved keyword.
62- * @param {DeleteOptions } options
63- * @returns {Promise<void> }
64- */
65- delete : ( options : DeleteOptions ) => Promise < void > ;
66- constructor : Function ;
67- toString ( ) : string ;
68- toLocaleString ( ) : string ;
69- valueOf ( ) : Object ;
70- hasOwnProperty ( v : PropertyKey ) : boolean ;
71- isPrototypeOf ( v : Object ) : boolean ;
72- propertyIsEnumerable ( v : PropertyKey ) : boolean ;
73- simplifyOutput : ( bit ?: any ) => boolean ;
74- open : typeof open ;
75- close : typeof close ;
76- get : typeof get ;
77- } ;
78- export = _exports ;
79- /**
80- * Synchronous query.
81- * @param {Function } query
82- * @param {string[]|BaseOptions } options
83- * @returns {QueryRetval }
84- */
85- function sync ( query : Function , options ?: string [ ] | BaseOptions ) : QueryRetval ;
8658 /**
8759 * Opens a database file.
8860 * @param {string } file Relative path to the database file
8961 * @returns {void|never }
9062 */
91- function open ( file : string ) : void | never ;
63+ export function open ( file : string ) : void | never ;
9264 /**
9365 * Closes an open database.
9466 * @returns {void|never }
9567 */
96- function close ( ) : void | never ;
68+ export function close ( ) : void | never ;
9769 /**
9870 * Retrieves the database, if open.
9971 * @returns {PromiseDB|never }
10072 */
101- function get ( ) : PromiseDB | never ;
73+ export function get ( ) : PromiseDB | never ;
74+ /**
75+ * Synchronous query.
76+ * @param {Function } query
77+ * @param {string[]|BaseOptions } options
78+ * @returns {QueryRetval }
79+ */
80+ export function sync ( query : Function , options ?: string [ ] | BaseOptions ) : QueryRetval ;
10281 import { PromiseDB } from "lib/promisedb" ;
82+ export function simplifyOutput ( bit ?: any ) : boolean ;
83+ export function select ( options : SelectionOptions ) : Promise < SelectionPromise > ;
84+ export function _delete ( options : DeleteOptions ) : Promise < void > ;
85+ export { _delete as delete } ;
10386}
10487declare module "lib/expressions/boolean" {
10588 export = booleanExpressions ;
@@ -114,7 +97,7 @@ declare module "lib/operators/logic" {
11497 export const OR : string ;
11598 export const NOT : string ;
11699}
117- declare module "index " {
100+ declare module "promise-sql " {
118101 const _exports : {
119102 increment : ( column : any ) => string ;
120103 decrement : ( column : any ) => string ;
@@ -132,19 +115,13 @@ declare module "index" {
132115 OR : string ;
133116 NOT : string ;
134117 } ;
135- sync : ( query : Function , options ?: any ) => QueryRetval ;
136- delete : ( options : DeleteOptions ) => Promise < void > ;
137- constructor : Function ;
138- toString ( ) : string ;
139- toLocaleString ( ) : string ;
140- valueOf ( ) : Object ;
141- hasOwnProperty ( v : PropertyKey ) : boolean ;
142- isPrototypeOf ( v : Object ) : boolean ;
143- propertyIsEnumerable ( v : PropertyKey ) : boolean ;
144118 simplifyOutput : ( bit ?: any ) => boolean ;
145119 open : ( file : string ) => void ;
146120 close : ( ) => void ;
147121 get : ( ) => import ( "lib/promisedb" ) . PromiseDB ;
122+ select : ( options : SelectionOptions ) => Promise < SelectionPromise > ;
123+ sync : ( query : Function , options ?: string [ ] | BaseOptions ) => QueryRetval ;
124+ delete : ( options : DeleteOptions ) => Promise < void > ;
148125 PromiseDB : typeof import ( "lib/promisedb" ) . PromiseDB ;
149126 } ;
150127 export = _exports ;
0 commit comments