Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • R ReActiveAndroid
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Mahach Imangazaliev
  • ReActiveAndroid
  • Merge requests
  • !33
An error occurred while fetching the assigned milestone of the selected merge_request.

Updated README.md with some some more working examples

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/dookah/master into master 6 years ago
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: dookah

Updated the readme to explain how to Get a selection of records from the database, also updated the get specific record syntax to use correct syntax. Using Original Readme syntax emaple, SQLite syntax error would occur due to lack of "?" in getting a specific record.

Compare
  • master (base)

and
  • latest version
    7a6758c9
    1 commit, 2 years ago

1 file
+ 5
- 2

    Preferences

    File browser
    Compare changes
README.md
+ 5
- 2
  • View file @ 7a6758c9

  • Edit in single-file editor

  • Open in Web IDE


@@ -134,7 +134,10 @@ Insert.into(Note.class).columns("title", "text").values("Title", "Text").execute
List<Note> notes = Select.from(Note.class).fetch();
//getting a specific record
Note note = Select.from(Note.class).where("id=", 1).fetchSingle();
Note note = Select.from(Note.class).where("id = ?", 1).fetchSingle();
//getting a selection of records
List<Note> notes = Select.from(Note.class).where("title = ?", "title").fetch();
//updating record
Update.table(Note.class).set("title = ?", "New title").where("id = ?", 1).execute();
@@ -157,4 +160,4 @@ The above copyright notice and this permission notice shall be included in all c
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
```
[logo]: https://raw.githubusercontent.com/ImangazalievM/ReActiveAndroid/master/art/logo.png
\ No newline at end of file
[logo]: https://raw.githubusercontent.com/ImangazalievM/ReActiveAndroid/master/art/logo.png
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
0
0 participants
Reference:
Source branch: github/fork/dookah/master

Menu

Explore Projects Groups Snippets