Git Product home page Git Product logo

chadb's Introduction

chaDB

this is embedded db

directory tree

root

  • db
  • testDB
    • database.js
    • table.js
    • handler.js
    • input.js

testDB/database.js

you need change 'dbroot' value to your 'project root path\db'

example

const root = 'C:\Users\[your user name]\[your path]\db'


start

cd testDB
node input and input below command



COMMAND

name rule : just permit regular expression \w.

  1. db create [db name] => new folder

  2. db use [db name] => path : db folder

  3. db drop [db name] => rm folder

  4. db show => print db list

  5. tb create [table name] (...) => new file in db folder

tb create(column name, type, [primary key = no, auto_increment=no, not null = no, default = null])

  1. tb insert into [table name] (col1, [col2, col3, ...]) values(vla1, [val2, val3, ...])

  2. tb select [column name] from [table name] where (col name = value)

회원가입 : 이메일 주소 있는지, select email from user where email=(check_email)


> 로그인 : select id, pw from user where id=(check_id) and pw=(check_pw)
  1. tb update [table name] set [feild name1=data1, ...] where (feild name = value)

  2. tb delete [table name] => rm file

  3. tb show => print table list

  4. tb desc [table name] => desc table

chadb's People

Contributors

chahtk avatar

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.