Giter VIP home page Giter VIP logo

aceql-http-docker's Introduction

aceql-http docker learning

how to running

  • change database connection info

    config links

  • build docker image

docker-compose build
  • start docker-compose services
docker-compose up -d
  • create db demo table
CREATE TABLE appdemos (
    id SERIAL PRIMARY KEY,
    appname text
);
CREATE TABLE user_login
(               
  username              varchar(255)    not null,     
  hash_password         varchar(40)     not null,
        PRIMARY KEY (username)
);
insert into user_login values ('username', '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8');
insert into user_login values ('MyUsername', 'eabbec6f31804eb968e2faeaaef150546a595fc3');
  • create session
curl --data-urlencode "password=MySecret" \
 http://localhost:9090/aceql/database/postgres/username/MyUsername/connect

result

{
    "status":"OK",
    "connection_id":"2120127074",
    "session_id":"mxnqvt867sf9jgf3snbknk8ysc"
}
  • insert some datas
 curl --data-urlencode "sql=insert into appdemos values (1,'dalongdemo')" http://localhost:9090/aceql/session/mxnqvt867sf9jgf3snbknk8ysc/execute_update
 curl --data-urlencode "sql=insert into appdemos values (2,'daldddongdemo')" http://localhost:9090/aceql/session/mxnqvt867sf9jgf3snbknk8ysc/execute_update
  • query results
curl --data-urlencode "sql=select * from appdemos" --data "pretty_printing=true" http://localhost:9090/aceql/session/mxnqvt867sf9jgf3snbknk8ysc/execute_query

aceql-http-docker's People

Contributors

rongfengliang avatar

Watchers

 avatar  avatar

Forkers

voicon

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.