You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

expo-sqlite-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-sqlite-wrapper - npm Package Compare versions

Comparing version

to
1.1.0

2

package.json
{
"name": "expo-sqlite-wrapper",
"version": "1.0.9",
"version": "1.1.0",
"description": "This is a wrapper for `expo-sqlite` as it make it very easy to create, update and work with the database file",

@@ -5,0 +5,0 @@ "main": "index.tsx",

@@ -31,9 +31,9 @@ # expo-sqlite-wrapper

static GetTableStructor() {
return new TableStructor(
return new TableStructor<Parent, TableNames>(
"Parents",
[
{ columnName: "id", columnType: ColumnType.Number, nullable: false, isPrimary: true, autoIncrement: true },
{ columnName: "name", columnType: ColumnType.String },
{ columnName: x=> x.id, columnType: ColumnType.Number, nullable: false, isPrimary: true, autoIncrement: true },
{ columnName: x=> x.name, columnType: ColumnType.String },
//isUique acts as an Id too as the library will chack if there exist an item with the same field value and will update instead.
{ columnName: "email", columnType: ColumnType.String, isUique: true }
{ columnName: x=> x.email, columnType: ColumnType.String, isUique: true }
]

@@ -55,11 +55,11 @@ )

static GetTableStructor() {
return new TableStructor(
return new TableStructor<Child, TableNames>(
"Childrens",
[
{ columnName: "id", columnType: ColumnType.Number, nullable: false, isPrimary: true, autoIncrement: true },
{ columnName: "name", columnType: ColumnType.String },
{ columnName: "parentId", columnType: ColumnType.Number, nullable: true },
{ columnName: x=> x.id, columnType: ColumnType.Number, nullable: false, isPrimary: true, autoIncrement: true },
{ columnName: x=> .name, columnType: ColumnType.String },
{ columnName: x=> x.parentId, columnType: ColumnType.Number, nullable: true },
],
[
{ contraintTableName: "Parents", contraintColumnName: "id", columnName: "parentId" }
{ contraintTableName: "Parents", contraintColumnName: "id", columnName: x=> x.parentId }
]

@@ -66,0 +66,0 @@ )

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet