db.transaction(tx=>{console.log("데이터 가져오기");tx.executeSql('SELECT * FROM Test;',[],(tx,results)=>{console.log("select ");console.log('results:',results.rows.row)},(error)=>console.log(error))})
}
constcreateTable=()=>{
db.transaction(tx=>{console.log("테이블 생성하기");tx.executeSql('CREATE TABLE IF NOT EXISTS Test('+'age INTEGER);',[],()=>{console.log("테이블 생성 성공 ");},(error)=>console.log(error))})
}
constinsertData=()=>{
db.transaction(tx=>{console.log("데이터 삽입하기");tx.executeSql('INSERT INTO Test (age) VALUES (23);',[],()=>{console.log("삽입 성공");},(error)=>console.log(error))})