Giter Club home page Giter Club logo

qtk's Introduction

Q Toolkit

Documentation License: MIT

Libraries that ease q development

Overview

Q Toolkit (QTK) is a set of libraries that ease development by q, a language for kdb+. It provides the following tools:

  • simple package/module management
  • uniform APIs to interact with tables regardless of whether they are in-memory or on-disk
  • database management utilities
  • file system utilities
  • structured error raising

Getting Started

Installation

  1. Download the zipped file from the latest release.
  2. Unzip it.
    unzip qtk-0.1.zip
    cd qtk-0.1
  3. Export QTK environment variable and point it to the absolute path.
    export QTK=$(readlink -f .)
  4. Start a q session and load init.q.
    # load the script via command line
    q init.q
    Alternatively load the script within a q session
    system "l ",getenv[`QTK],"/init.q";

Usage

Browse the docs and search for what you may need. The following is a CRUD example.

.qtk.import.loadModule["tbl";`qtk];  // Import tbl module from qtk package
tabRef:(`:/tmp/qtk/db; `date; `Table);  // A partitioned table ID that specifies database directory, partition field, and table name
.qtk.tbl.create[tabRef; ([] date:2022.01.01 2022.01.02; c1:1 2)]  // Create the partitioned table with given data
.qtk.tbl.load `:/tmp/qtk/db;
.qtk.tbl.update[`Table; (); 0b; (enlist`c1)!(enlist (*;`c1;2))];
.qtk.tbl.select[`Table; (); 0b; 0#`];
.qtk.tbl.drop `Table;

Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page. You can also take a look at the contributing guide.

License

Copyright © 2023 Darren Sun.
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

qtk's People

Contributors

darrenwsun avatar

Stargazers

FunCoder avatar Jo Shinonome avatar

Watchers

 avatar

qtk's Issues

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.