Giter Club home page Giter Club logo

sqliteplus's Introduction

SQLitePlus build

A modern C++ header only SQLite3 wrapper

About

This header only library aims to provide an simple and intuitive interface for the SQLite3 C library. Many of the methods took inspirations from the Python SQLite3 library.

Install

  1. Download directory lib
  2. Include headers
    • CMake Project:
      • simply include the lib/include directory in your project
      • INCLUDE_DIRECTORIES(./lib/include)
        
    • Others:
      • include SQLITE3.hpp and SQLITE3_QUERY.hpp in your project

Dependency

Documentation

See Doxygen

Contributing

  1. Fork Repo
  2. Make Changes and add new tests if needed
  3. Submit pull request with detail description on changes and new features
  4. Wait for approval
  • Please keep in mind that this project aims to create a simple and intuitive interface for the SQLite3 C library, so please refrain from adding anything to the dependency tree.

Feature Request

Submit a feature request under the issues tab.

Demo

    cmake CMakeLists.txt
    make
    ./SQLitePlusDemo

Tutorial

sqliteplus's People

Contributors

yuqian5 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jonny21099 beanon

sqliteplus's Issues

Memory Leak near SQLITE3::execute(SQLITE3_QUERY&)

Describe the bug
Memory leak

To Reproduce
valgrind --leak-check=full ./SQLitePlusDemo

Screenshots
==30824== HEAP SUMMARY:
==30824== in use at exit: 48 bytes in 1 blocks
==30824== total heap usage: 658 allocs, 657 frees, 327,657 bytes allocated
==30824==
==30824== 48 bytes in 1 blocks are definitely lost in loss record 1 of 1
==30824== at 0x4C2FB0F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30824== by 0x4E89233: ??? (in /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6)
==30824== by 0x4E57223: ??? (in /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6)
==30824== by 0x4E593B5: ??? (in /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6)
==30824== by 0x4ED5391: sqlite3_exec (in /usr/lib/x86_64-linux-gnu/libsqlite3.so.0.8.6)
==30824== by 0x10B9BC: SQLITE3::execute(SQLITE3_QUERY&) (in /home/rocketkerry_gmail_com/SQLitePlus/SQLitePlusDemo)
==30824== by 0x10A370: main (in /home/rocketkerry_gmail_com/SQLitePlus/SQLitePlusDemo)
==30824==
==30824== LEAK SUMMARY:
==30824== definitely lost: 48 bytes in 1 blocks
==30824== indirectly lost: 0 bytes in 0 blocks
==30824== possibly lost: 0 bytes in 0 blocks
==30824== still reachable: 0 bytes in 0 blocks
==30824== suppressed: 0 bytes in 0 blocks

Desktop (please complete the following information):

  • OS: Linux Ubuntu 18.04

Linux bug

Describe the bug
PrintHello not behaving as expected on linux machines

To Reproduce
Steps to reproduce the behavior:

  1. ./SQLitePlusDemo

Desktop (please complete the following information):

  • OS: [Ubuntu 20.04]

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.