Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

----------------
  CFMLQuery.js
----------------

https://github.com/davemerrill/CFMLQuery.js


Javascript class that manages datasets in ColdFusion's default JSON format

- Converts DATA array to objects with named keys (columns), in place
  Avoids creating two copies of large data

- By default, uses lcased query column names as field names for the data array

- Can use your own field names
  Pass either a list of names, or an array of metadata objects

- Updates COLUMNS array with names used
  Exposes column definitions by field name as a public property

- Optional decorator function can process each data row as it's created
  Use to format data or create calculated columns

- Easily omit columns you don't need

- Load data as many times as desired without recalculating column infos
  As long as it's in the same format

- Observable

- Generates a compiled a conversion function once columns are defined, for speed

- Standalone, no dependencies



There are pretty complete usage docs in the code, demo to come.

This is a somewhat preliminary promote.
Everything built works I believe, but there are some possible TODOs.
Could also use some comment/doc cleanup and fleshing out.

License:
    CFMLQuery.js is open source software by Dave Merrill.
    Licensed under the MIT License (see LICENSE.txt).

About

Javascript utility helper for ColdFusion query data in SerializeJSON format.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages