Giter Site home page Giter Site logo

p32929 / androideasysql-library Goto Github PK

View Code? Open in Web Editor NEW
30.0 7.0 7.0 2.8 MB

An Easier & Lazier approach to SQL database for Android

License: MIT License

Java 100.00%
easydb lazier database sql-database android library sqlite-database sqlite sqlite-an sqliteopenhelper

androideasysql-library's Introduction

-> My portfolio

https://p32929.github.io/

-> My Github Stats

waterlessPiano2 languages

-> My Gists

https://gist.github.com/p32929/

-> Share My Profile

Share this profile with your friends in just a click

facebook twitter whatsapp linkedin pinterest reddit pocket tumblr

-> Share My Portfolio

Share my portfolio ( https://p32929.github.io/ ) with your friends in just a click

facebook twitter whatsapp linkedin pinterest reddit pocket tumblr

-> Support

If you like my works and want to support me/my works, feel free to support. My payment details can be found here:

buymeacoffee

-> Thanks

Thanks everyone for visiting my profile. If you are enjoying any of my works, whether it be a library or a template or anything, feel free to let me know. All my contact details can be found here: https://p32929.github.io/

androideasysql-library's People

Contributors

p32929 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

androideasysql-library's Issues

Not working

Uploading Screenshot (42).png…
Uploading Screenshot (43).png…

Uploading Screenshot (41).png…
I am getting this error please help e with this

Is there any need of these SDKs in this lib?

Due to this, the APK size is increased. Should I remove these dependencies?

implementation 'com.android.support:appcompat-v7:26.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

getting an error Exception not an error (code 0 SQLITE_OK)

Hello , i would like to thank you for this great library , i'm using it in my project but i'm facing an issue while trying to save data ,
basically when i try to save the data it throws an error , i tried to fix it but found nothing to fix , if you can help , i'd appreciate it , thank you

  • This is the error

E/SQLiteLog: (21) API called with NULL prepared statement
(21) misuse at line 78396 of [0c55d17973]
D/TAG: Exception not an error (code 0 SQLITE_OK)

  • This is the code

val easyDB = EasyDB.init(this,"ITEMS_DB")
.setTableName("CART_TABLE")
.addColumn(Column("item_id", *arrayOf("text","unique")))
.addColumn(Column("item_title", *arrayOf("text","not null")))
.addColumn(Column("item_category", *arrayOf("text","not null")))
.addColumn(Column("item_price_each", *arrayOf("text","not null")))
.addColumn(Column("item_price", *arrayOf("text","not null")))
.addColumn(Column("item_quantity", *arrayOf("text","not null")))
.addColumn(Column("product_delivery_fee", *arrayOf("text", "not null")))
.addColumn(Column("country", *arrayOf("text", "not null")))
.addColumn(Column("city", *arrayOf("text", "not null")))
.addColumn(Column("address", *arrayOf("text", "not null")))
.addColumn(Column("state", *arrayOf("text", "not null")))

        val isAdded = easyDB
                .addData("item_id",1)
                .addData("item_title",model.productName)
                .addData("item_category",model.productCategory)
                .addData("item_price_each",model.productPrice)
                .addData("item_price",totalPrice.toString())
                .addData("item_quantity",itemIndex.toString())
                .addData("product_delivery_fee",model.productDeliveryFee)
                .addData("country",country)
                .addData("city",city)
                .addData("address",address)
                .addData("state",state)
                .doneDataAdding()
  • I have also tried to seek help on SO , if you would like to take a look

https://stackoverflow.com/questions/67978444/android-sql-database-not-saving-data?noredirect=1#comment120152438_67978444

How I can execute 'where' condition

Like I have a situation where I want to select rows based on one flag (column) .
like typical sql query. select * from table where age=21
how can I do the same in this?

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.