Giter Club home page Giter Club logo

Comments (4)

frioux avatar frioux commented on September 8, 2024

Check out DBIx::Class::Helper::Row::NumifyGet

sent from a rotary phone, pardon my brevity
On Dec 8, 2015 8:32 AM, "Fangyuan" [email protected] wrote:

When convert Row data to json using ToJSON, the column with integer type
will be converted to string. Of course, I could make the value to integer
via $a + 0. Is there anyway auto do that, make sure the integer column to
integer.
Thanks.


Reply to this email directly or view it on GitHub
#59.

from dbix-class-helpers.

fangyuan avatar fangyuan commented on September 8, 2024

Thanks, this module is really what I want.
I read the source code and run test, then I update the column attrs and include this module, but still failed to export as number using TO_JSON or get_column. Then I use the method is_numeric in NumifyGet.t to assert the value return by get_column, the result is 0. The module seems does not work. Any suggestion? Thanks

from dbix-class-helpers.

frioux avatar frioux commented on September 8, 2024

Use both of the modules and you should get what you are after; they are specifically made to be used together.

from dbix-class-helpers.

frioux avatar frioux commented on September 8, 2024

Closing this. Feel free to comment or reach out on IRC if you need more help.

from dbix-class-helpers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.