Skip to content

Commit

Permalink
dummy commit to test releases (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Nicolle authored Dec 8, 2023
1 parent 549f185 commit 0bc4c14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { RawGraph } from "@linkurious/ogma";
import { Connection, Lob } from "oracledb";
import { OracleResponse, ParserOptions, SQLID } from "./types";
Expand Down Expand Up @@ -65,6 +64,7 @@ export function readLob<T = unknown>(lob: Lob) {
});
});
}

/**
* Parser for Oracle SQL Graph
* @typeParam ND [Node data type](https://doc.linkurious.com/ogma/latest/tutorials/typescript/index.html#data-typing)
Expand Down Expand Up @@ -107,6 +107,7 @@ export class OgmaOracleParser<ND = unknown, ED = unknown> {
})
} as RawGraph<N, E>;
}

/**
* Read a lob and parse it as [RawGraph](https://doc.linkurious.com/ogma/latest/api.html#RawGraph)
* @param lob
Expand All @@ -116,6 +117,7 @@ export class OgmaOracleParser<ND = unknown, ED = unknown> {
return readLob<OracleResponse<N, E> & { numResults: number; }>(lob)
.then((result) => ({ ...this.parse<N, E>(result), numResults: result.numResults }));
}

/**
* Executes a query (wrapped in CUST_SQLGRAPH_JSON)
* and returns a [RawGraph](https://doc.linkurious.com/ogma/latest/api.html#RawGraph)
Expand Down Expand Up @@ -160,7 +162,6 @@ export class OgmaOracleParser<ND = unknown, ED = unknown> {
}
const parser = new OgmaOracleParser({ SQLIDtoId, SQLIDfromId });
export default parser;

export const parse = parser.parse.bind(parser);
export const parseLob = parser.parseLob.bind(parser);
export const getRawGraph = parser.getRawGraph.bind(parser);

0 comments on commit 0bc4c14

Please sign in to comment.