GithubHelp home page GithubHelp logo

lbonn / sql-file Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 864 KB

Demo code and presentation for Berlin C++ BBQ on 2019-07-18

License: Mozilla Public License 2.0

CMake 4.43% Python 17.42% Makefile 2.00% CSS 26.23% C++ 48.13% Shell 1.79%

sql-file's Introduction

SQL-file

This is a small example application to illustrate how to manage an application using SQLite as a file format.

Relevant link: https://www.sqlite.org/appfileformat.html

Demo

sample_v0.conv contains conversion rates from euro to usd, in the v0 format sample_v1.conv contains conversion rates from euro to usd and euro to yen, in the v1 format

mkdir build
(cd build && cmake .. -GNinja && cmake --build . && ctest -V)

# all of these work
./build/currency_convert_v0 data/sample_v0.conv eurusd 2012-12-12 1
./build/currency_convert_v0 data/sample_v1.conv eurusd 2012-12-12 1
./build/currency_convert_v1 data/sample_v0.conv eurusd 2012-12-12 1
./build/currency_convert_v1 data/sample_v1.conv eurusd 2012-12-12 1
./build/currency_convert_v1 data/sample_v1.conv eurjpy 2012-12-12 1

# these don't
./build/currency_convert_v0 data/sample_v1.conv eurjpy 2012-12-12 1
./build/currency_convert_v1 data/sample_v1.conv eurusd 2020-01-01 1

Slides

Slides for the presentation on the C++ Meetup Berlin are in slides/

Or browse at https://lbonn.github.io/sql-file/

License

This code is licensed under the link:LICENSE[Mozilla Public License 2.0], a copy of which can be found in this repository.

Significant portions are derived from the aktualizr code base, licensed on the same terms and copyright HERE Europe B.V., 2016-2019.

sql-file's People

Contributors

lbonn avatar

Watchers

James Cloos avatar Carsten Müncheberg avatar  avatar

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.