import * as SQLite from "expo-sqlite"
import { BaseModel, types } from 'expo-sqlite-orm'
export default class Parameter extends BaseModel {
constructor(obj) {
super(obj)
}
static get database() {
return async () => SQLite.openDatabase('videothequesss.db')
}
static get tableName() {
return 'parameters'
}
static get columnMapping() {
return {
id: { type: types.INTEGER, primary_key: true },
nameParam:{ type: types.TEXT },
valueParam: { type: types.TEXT }
}
}
Hello,
I tried to use the expo-sqlite-orm but any operation (createTable, find, findBy..) returned
can you please help?
The code
The Parameter class