Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

export Float in index.ts #1720

Closed
john-twigg-ck opened this issue Oct 4, 2022 · 2 comments · Fixed by #1726 or #1752
Closed

export Float in index.ts #1720

john-twigg-ck opened this issue Oct 4, 2022 · 2 comments · Fixed by #1726 or #1752
Assignees
Labels
api: spanner Issues related to the googleapis/nodejs-spanner API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@john-twigg-ck
Copy link

https://github.com/googleapis/nodejs-spanner/blob/main/src/codec.ts#L125

I can convert TO Float using Spanner.float but I cannot easily make an interface to capture ORM being returned from the DB.

Example

// ??????
import { Float } from "@google-cloud/spanner/build/src/codec"
// ??????

export interface Trace {
    traceId: string
    flowName: string

    startTime: ISODateString

    endTime: ISODateString

    // Duration in uSeconds
    duration: Float

@john-twigg-ck john-twigg-ck added priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Oct 4, 2022
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/nodejs-spanner API. label Oct 4, 2022
@surbhigarg92
Copy link
Contributor

@john-twigg-ck Can you please review the #1726 . Will this resolve your issue ?

@surbhigarg92
Copy link
Contributor

@john-twigg-ck Please reopen the issue , if PR does not address your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/nodejs-spanner API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
3 participants